Signals and Slots in D

Sean Kelly sean at f4.ca
Fri Sep 29 10:39:35 PDT 2006


Thomas Kuehne wrote:
> 
> No. The trick is that this area is collected(and updated by a moving
> GC), but isn't considered while looking for pointers into the "normal"
> area.

I made some experimental changes to add a per-block "scan through" bit 
to the DMD GC to indicate whether a memory block may contain pointers or 
not.  It works quite well, but granularity is per block, so if you had 
something like this:

class C {
     C strong;
     C weak;
}

There is no way to tell the GC to simply ignore the weak reference--it's 
all or nothing.


Sean



More information about the Digitalmars-d mailing list