Would love to override default ctor of struct
Alex
sascha.orlov at gmail.com
Sat Jan 19 10:18:34 UTC 2019
On Saturday, 19 January 2019 at 10:05:22 UTC, Dru wrote:
> What is the idea behind why we can't define default ctor for
> structs?
>
> In current situation I need to "@disable this()"
> then define a constructor with dummy arguments (because my
> constructor does not need arguments)
>
> It is a big pain on syntax
If your constructor doesn't need any arguments, what is the
reason you can't define default values to your members?
More information about the Digitalmars-d
mailing list