Structs are Not Plain: A call for empty struct constructors
Dennis
dkorpel at gmail.com
Thu Sep 19 09:27:16 UTC 2019
On Thursday, 19 September 2019 at 09:02:39 UTC, FeepingCreature
wrote:
> We could do horrible workarounds like `Fixture(null)`, but
> that's just making a bad situation worse.
The usual workaround is to have a function `fixture` that returns
your default constructed `Fixture` struct. I don't know why
default constructors are not allowed on structs though.
More information about the Digitalmars-d
mailing list