How to instantiate class object NOT in the GC heap

bearophile bearophileHUGS at lycos.com
Sun Jul 15 09:34:44 PDT 2012


Alex Rønne Petersen:

> This is how you do it in modern D:

This seems fiddly and bug-prone (and eventually fit to go in the 
D FAQ).
Maybe it needs to use an aligned_malloc, to avoid aligning 
troubles in the class.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list