Explicit default constructor for structs
Benjamin Thaut
code at benjamin-thaut.de
Wed Apr 9 11:55:04 PDT 2014
Am 09.04.2014 20:53, schrieb Brian Schott:
> On Wednesday, 9 April 2014 at 18:47:41 UTC, Benjamin Thaut wrote:
>> Thats easy to answer. What would it do if you replace the "struct"
>> with "class" and the "void" with nothing?
>
> This thread is giving me some fun ideas for static analysis rules.
Just saying, if you do the same with a class, the default constructor is
picked and not the one with the default argument. So it should do the
same for structs.
More information about the Digitalmars-d
mailing list