Re: the garbage collector

From: Rob Kennedy (me3_at_privacy.net)
Date: 04/08/04


Date: Thu, 08 Apr 2004 11:46:12 -0500

Skybuck Flying wrote:
> Are linked lists still possible ?
>
> I think so... but all the references of the list will probably be updated...
> that could become expensive with large lists :) (many nodes :) )

Linked lists are still possible. Each node object would hold a reference
to the next node object. If the garbage collector at some point decides
that it needs to move one of those nodes, it would also update the
reference held by the other node. Totally and completely transparent to
the programmer since the exact value of the reference is unimportant.

-- 
Rob


Relevant Pages

  • Re: Treeview help
    ... > Mike, thank you, ... In VB6's Treeview, there's only one Nodes collection, a reference to ... which is obtained from the Nodes property of the Treeview control itself. ... LastSibling, Next, Previous, Parent, and Root properties of a Node object. ...
    (microsoft.public.vb.general.discussion)
  • Re: the garbage collector
    ... > Linked lists are still possible. ... Each node object would hold a reference ... If the garbage collector at some point decides ...
    (alt.comp.lang.borland-delphi)
  • Re: Treeview help
    ... the first argument is a reference to the parent. ... I didn't know you could pass a reference to a Node object for the first ... What matters most is writing clear and concise code. ...
    (microsoft.public.vb.general.discussion)
  • Re: Treeview help
    ... the first argument is a reference to the parent. ... I wonder.....would a reference to a Node object ... > think passing a Node object is a good idea. ... I can't see the control determining that it has the reference ...
    (microsoft.public.vb.general.discussion)
  • Re: Linked list
    ... > preparing for an interview. ... > The only reference MSDN gives for using ILIST is for the Listbox control. ... for linked lists ...
    (microsoft.public.dotnet.languages.csharp)