Allocating structs with new?

bearophile bearophileHUGS at lycos.com
Fri Jul 9 23:24:00 PDT 2010


Jonathan M Davis Wrote:

> I thought that classes always went on the heap and that structs always went on 
> the stack

Structs can be allocated on the heap, and then referenced by pointer. This is not something I can live without.
Explicit delete is a problem with a language based on GC, it has to be removed with care.

Bye,
bearophile


More information about the Digitalmars-d mailing list