I used to have this problem in Java.  You are likely to have to build it yourself, regrettably.  Thankfully, maps aren't that hard to build.   If you create a WeakValueMap class, share it with the community - they'll thank you. :)

regards,
Christian.

Aldo Bucchi wrote:
>
> aha! thanks
>
> so we have weakreferences...
> but only for the *keys* of the dictionary... but i need them for the
> values so I can create ordered lists and maps
>
> list[0] = weaklyReferencedObject1;
> list[1] = weaklyReferencedObject2;
> list[2] = weaklyReferencedObject3;
>
> map["blabla"] = weaklyReferencedObject4;
> map["bloblo"] = weaklyReferencedObject5;
>
> of course I could iterate through the keys of a dictionary. that would
> spit out the order in which the keys were added, right?
>
> now, another way would be to use one dictionary per entry ( on another
> dictionary or on a simple object ). I would then know that the weakly
> referenced object I am interested in is THE ONLY KEY available...
> I could wrap this into a custom class using flash_proxy to make it
> more usable. hmm but what about performance.
>
> ideas??
> is there any class in the framework that has weakreferences for the
> values instead of the keys?
> thx,
>
> Aldo

--

christian gruber + process coach and architect

Israfil Consulting Services Corporation

email [EMAIL PROTECTED] + bus 905.640.1119 + mob 416.998.6023

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to