[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 19:47:33 PDT 2012


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



--- Comment #12 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-09-21 19:48:34 PDT ---
For structs, as long as there is no static opCall declared, S() and S.init
should be identical, and I'd strongly argue that if one is disabled, the other
should be disabled. They do exactly the same thing. It makes _no_ sense IMHO to
allow S.init but allow S() or vice versa (as long as no static opCall is
declared).

-- 
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