[Issue 10201] "= void" initialization should not be allowed in @safe

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 29 08:42:08 PDT 2013


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



--- Comment #1 from Dicebot <m.strashun at gmail.com> 2013-05-29 08:42:06 PDT ---
Additional explanation - it does report an error if initialized value is a
pointer or contains a pointer. It does not report an error if value has
disabled constructor though.

So it is not that dangerous in that sense, but can be used to workaround some
guarantees provided by disabled constructor. Prohibiting all void initalizers
in @safe may be both more simple and consistent.

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