[Newbies] What is a "weak" reference

Bert Freudenberg bert at freudenbergs.de
Tue Jul 15 19:58:19 UTC 2008

Am 15.07.2008 um 08:26 schrieb Herbert König:

> Hello Randal,
> RLS> dictionary.  This is how the classic "dependents" system works  
> as well: the
> RLS> dependencies are in a WeakDictionary so that when the watched  
> object goes
> RLS> away, the dependencies are also cleaned.
> thanks for some free education (no smiley, I mean it), now I'll do
> some homework and look up dependency.
> I use it in some places without knowing of it's "weakness".

The dependents are weak only for "regular" objects. Proper Models  
handle their own dependents collection in a non-weak manner.

- Bert -

More information about the Beginners mailing list