[Q] dependency in morph
Lex Spoon
lex at cc.gatech.edu
Sun Sep 8 15:02:44 UTC 2002
Ned Konz <ned at bike-nomad.com> wrote:
> On Friday 06 September 2002 11:41 am, Stephane Ducasse wrote:
> > I'm planning to use that for my book which is in 3.2
> > so is it working or not?
>
> Well, I _think_ it's working, but if you're not careful (if you don't
> unregister the events) it can keep your morphs from being GC'd. The
> old dependents mechanism used a Weak collection already, so this
> wasn't a problem.
Is #release hooked up to clear these out? At a glance it looks like it
might be.
> > How does the finalization mechanism work? Will it nil out garbage slots?
Yes. Well, that's the "weak references" part. The "finalization" part
involves someone noticing that a slot becoming empty, and calling a
method on a shalow copy of the original object.
-Lex
More information about the Squeak-dev
mailing list
|