swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Example of sets and indexing


From: Marcus G. Daniels
Subject: Re: Example of sets and indexing
Date: 25 Jul 1999 20:40:50 -0700
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "AV" == Ajoy Victor <address@hidden> writes:

AV> Could you please explain some more how this line:

AV> [l setIndexFromMemberLoc: offsetof (Integer, link)];

AV> ensures unique members in the list.

Since the member objects contain the links to their peers,
there is no way to have the same object twice in the list.

AV> Are you
AV> saying here I can use OrderedSet because it's not implemented as
AV> Set. Or that using "the lower-level interface" of the OrderedSet
AV> collection is a safer alternative to use Set (How does this
AV> lower-level interface work?).

OrderedSet relies on a user invoking the method above.  
So you now have to understand the notion of object-internal links.




                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]