Explicit default constructor for structs
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Sat Apr 26 22:20:28 PDT 2014
On Wednesday, 9 April 2014 at 14:59:35 UTC, Benjamin Thaut wrote:
> E.g. it could look like this (alternative a new keyword
> "explicit" could be introduced, but introduction of new
> keywords is usually avoided if possible, AFAIK):
sorry for not reading the whole post and necroposting, but
please, please, please vote for new keywords! please, stop
suggesting obscure features that cannot be logicaly deducted!
'@explicit' attribute can work fine here, and 'this(void)' is
impossible to understand without carefull *studying* the
documentation. and it is really easy to miss when reading the
code.
More information about the Digitalmars-d
mailing list