struct and default constructor

deadalnix deadalnix at gmail.com
Sun Nov 27 12:52:19 PST 2011


Le 27/11/2011 21:39, Andrej Mitrovic a écrit :
> That's not a workaround, that ctor never gets called unless you pass
> an argument.

So if you @disable this(); you shouldn't get an error. Actually, you 
have an implicit constructor, even if it's only to set the variable as 
equal to .init property of the struct.


More information about the Digitalmars-d mailing list