struct and default constructor

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


In addition, here is a workaround :

// Wonderfull !
@disable this();

// Default constructor workaround.
this(int dummy = 0) { ... }

But that look very dirty and it feels like working against the language.


More information about the Digitalmars-d mailing list