[Glass] Simple questions while migrating code to GemStone (compatibility issues)

Mariano Martinez Peck marianopeck at gmail.com
Wed Nov 13 17:59:51 PST 2013


On Wed, Nov 13, 2013 at 8:06 PM, Martin McClure <
martin.mcclure at gemtalksystems.com> wrote:

> On 11/13/2013 11:35 AM, Dale K. Henrichs wrote:
> >
> >     - Do we have an alternative for WeakValueDictionary?
> >
> > In 3.x we have KeySoftValueDictionary which is the moral equivalent of
> > WeakValueDictionary with the caveat that instances of
> > KeySoftValueDictionary cannot be persisted ... we only suppor vm level
> > weakness ...
>
> Note that soft references are only cleared under memory pressure, so it
> may or may not meet your needs for equivalence to WeakValueDictionary.
>
> We do support ephemerons in 3.x, which could be used to build
> collections whose behavior is closer to traditional weak collections.
> Ephemerons also are limited to being non-persistent.
>

Cool!  (before answering Dale..I need to deep a bit more for that) ... what
does it mean that it is not-persistent? what happens to an object which IS
persistent and has a pointer to a non-persistent object? Error? replaced by
nil?

Thanks,

-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20131113/5acfc653/attachment.html>


More information about the Glass mailing list