StructType.init and StructType() cause a allocation

bearophile bearophileHUGS at lycos.com
Sat Jun 30 04:47:34 PDT 2012


Benjamin Thaut:

> I created a bug ticket for this 6 months ago, but it has been 
> ignored so far: 
> http://d.puremagic.com/issues/show_bug.cgi?id=7271

A similar bug was fixed very recently. D used to allocate a 
dynamic array of length 1 when you write "new T" where T is a 
struct. I don't know if that bug fix (in dmd 2.060alpha) has 
fixed your problem too. Such kind of bugs do get fixed, 
eventually :-)

Bye,
bearophile


More information about the Digitalmars-d mailing list