Allocating structs with new?

bearophile bearophileHUGS at lycos.com
Mon Jul 12 13:11:59 PDT 2010


Andrei Alexandrescu:
> Statically disabling new for structs with dtors - that's an interesting 
> idea.

In this bug report, comment 6, I have asked for a warning, but turning it into an error can work too :-)
http://d.puremagic.com/issues/show_bug.cgi?id=2834

Bye,
bearophile


More information about the Digitalmars-d mailing list