Disallowing S() when struct S has a constructor
Kapendev
alexandroskapretsos at gmail.com
Sat Aug 31 02:03:11 UTC 2024
On Thursday, 29 August 2024 at 16:49:03 UTC, Nick Treleaven wrote:
> On Thursday, 29 August 2024 at 16:44:46 UTC, Nick Treleaven
> wrote:
>> Should we make S() for any struct an error in the next edition?
>
> I meant any struct *with a constructor*.
I think the current behavior is fine. As people said, you can
disable the default constructor if needed. A change like this
would break too much code, making any benefit a bit useless.
More information about the Digitalmars-d
mailing list