On Mon, 22 Mar 2010 19:00:57 -0300, Andrei Alexandrescu <[email protected]> wrote:
[snip]
And the last idea before I forget (just talked to Walter about it) is that the GC could and should offer functions:

GC.preCollect(void delegate());
GC.postCollect(void delegate());

That way we can effectively implement weak pointers.

Pre and post collect should be an array of delegates. Otherwise only one person's weak pointer library would work.

Reply via email to