[Issue 19065] Struct invariant violated in @safe with T.init
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jul 8 03:01:43 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19065
--- Comment #2 from FeepingCreature <default_357-line at yahoo.de> ---
T.init having to be a valid object makes structs unusable for value types that
contain objects by reference that must not be null, or arrays that must not be
empty. At my workplace, this scenario turns up a *lot* when trying to use
structs to contain domain data.
--
More information about the Digitalmars-d-bugs
mailing list