[Issue 519] Invariant not called from autogenerated class/struct constructor/destructor

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Nov 11 13:11:29 PST 2014


https://issues.dlang.org/show_bug.cgi?id=519

--- Comment #11 from Walter Bright <bugzilla at digitalmars.com> ---
I agree that the invariant should run on non-empty struct literals and on
destruction.

I'm skeptical, however, of the value of running it on default construction, as
those values will always be the .init ones.

--


More information about the Digitalmars-d-bugs mailing list