grauzone:
> > Struct constructors are probably the D2 feature I miss more in D1 :-)
> 
> Why?

During optimization phases I sometimes want to convert classes into structs, 
and then I want to allocate some of those struct instances on the heap and 
others on the stack. A struct constructor allows me to change as little as 
possible to the code that uses those new structs.

Bye,
bearophile

Reply via email to