[Issue 7021] Structs with disabled default constructors can be constructed without calling a constructor.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 21 21:09:48 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7021



--- Comment #14 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-09-21 21:10:52 PDT ---
> This is not already true for nested structs.

Well, that's disgusting. There are way too many special cases here. I'd vote to
just make S() identical to S.init even with nested structs. It's more
consistent that way, especially since you can't have a default constructor
making it so that S() can't possible refer to a default constructor.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list