[Pharo-project] announcements and weak references

Tudor Girba tudor.girba at gmail.com
Fri Jan 7 07:52:50 CET 2011


Hi,

Are there any plans to get Announcements use weak references?

I saw that in the repository of Lukas, there is a WeakAnnouncer. However, here the subscriptions are still held in a regular Dictionary.

Actually, I am not sure what is the status of weak references. I tried the following, but it does not seem to work:

| x array |
x := GLMPane new.
array := WeakArray with: x.
x := nil.
Smalltalk garbageCollect.
array size 

==> 1

Cheers,
Doru


--
www.tudorgirba.com

"We cannot reach the flow of things unless we let go."







More information about the Pharo-project mailing list