[Issue 15500] 'default construction is disabled for type' even though one should be available with default arg
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jan 4 15:43:16 PST 2016
https://issues.dlang.org/show_bug.cgi?id=15500
John Colvin <john.loughran.colvin at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |john.loughran.colvin at gmail.
| |com
--- Comment #3 from John Colvin <john.loughran.colvin at gmail.com> ---
Am I missing something? I assumed this would just be a straightforward "structs
cannot have a 0-arg constructor, even by using default arguments", regardless
of use. Why push the error message down to the user of the struct? Any use case
of the default argument is an error, therefore the default arguement should
itself be an error.
--
More information about the Digitalmars-d-bugs
mailing list