How the GC distinguishes code from data

Simen kjaeraas simen.kjaras at gmail.com
Fri Jan 7 12:16:36 PST 2011


%u <wfunction at hotmail.com> wrote:

>> You have to add it to the garbage collector's list of roots
>
> But if I need to do that, then what would be the difference between  
> void[] and
> ubyte[]?

None what so ever. If you want to mark some memory with special bits,
use setattr in core.memory.


-- 
Simen


More information about the Digitalmars-d-learn mailing list