Questions about initialization of array of objects

Andrey andr-sar at yandex.ru
Sat Jan 12 12:16:04 PST 2013


>> 2) Can you setup memory attributes for static array using 
>> core.memory functions, say, to force GC not to scan this 
>> portion of memory during collection?
>
> I do not understand what you mean here.

I mean static uint setAttr(in void* p, uint a) from core.memory 
and enum BlkAttr.NO_SCAN;

Can I use here cast(void*)arr.ptr and what effect it will cause 
on array of class objects?


More information about the Digitalmars-d-learn mailing list