www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: Allocating structs with new?

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
Jul 12 2010