Questions about initialization of array of objects

bearophile bearophileHUGS at lycos.com
Sat Jan 12 12:48:55 PST 2013


Andrey:

> I think GC scans stack for pointers.

Right. And I think you can't stop the GC from scanning the stack.


> The garbage collector looks for roots in:
> ...

What I meant to say is that if you put the fixed sized array on 
the heap then maybe you can mark it as noscan.

Maybe if you tell us more generally what you are trying to do, we 
can answer something useful :-)

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list