Re: Storing values in dictionary with their address as the key
Re: Storing values in dictionary with their address as the key
- Subject: Re: Storing values in dictionary with their address as the key
- From: Stuart Rogers <email@hidden>
- Date: Mon, 28 Jul 2008 20:41:09 +0100
If I wanted to store an object in a dictionary and set its key as
the
object's memory address - how would I go about doing this?
I'm racking my brains trying to think of a good reason to do this
and am
drawing a blank. I can, however, think of myriad bad reasons.
Agreed - I can't help but wonder about class clusters but I can't
think of a direct reason why this would be a 'problem area'. It's just
the first thing that popped into my head. :-)
Maybe I'm misunderstanding, but this strikes me as a clunky way
of implementing a set.
Stuart
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden