Questions about initialization of array of objects

bearophile bearophileHUGS at lycos.com
Sat Jan 12 12:22:05 PST 2013


Andrey:

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

If that array is allocated on the heap them mabye the GC will 
ignore those class instances.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list