Struct with default ctor (Was: [dmd-beta] dmd 2.064 beta take 2)

Maxim Fomin maxim at maxim-fomin.ru
Fri May 17 22:19:29 PDT 2013


On Saturday, 18 May 2013 at 02:34:46 UTC, Andrej Mitrovic wrote:
> On 5/18/13, Timothee Cour <thelastmammoth at gmail.com> wrote:
>> S.init should be known at compile time by the spec.
>
> But why is this needed?

It is needed in any place where such object is created due to 
default initialization. However if default ctor is CTFEable, dmd 
can support this feature.


More information about the Digitalmars-d mailing list