digitalmars.D.bugs - [Issue 10501] New: Can't put the safety attribute at the end of module constructor signature
- d-bugmail puremagic.com (28/28) Jun 29 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10501
http://d.puremagic.com/issues/show_bug.cgi?id=10501 Summary: Can't put the safety attribute at the end of module constructor signature Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: tommitissari hotmail.com The safety attributes: safe, trusted and system can be put only before the static constructor signature, not at the end of it. This is not consistent with their behaviour in other function signatures: class C { this() safe { } // OK void foo() safe { } // OK } safe static this() { } // OK static this() safe { } // Error shared static this() safe { } // Error -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 29 2013