[Issue 9463] make @safe "non-escapable"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 6 18:31:46 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9463
jfanatiker at gmx.at changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from jfanatiker at gmx.at 2013-02-06 18:31:43 PST ---
Thanks Jonathan!
By simply mixing in the code in a safe function like this:
@safe void parseConfig() {
mixin(import("app.cfg"));
}
you have all guarantees you need.
For extending an application in a safe way, a compiler switch '-safe' would be
the better way. It would be simpler to implement and completely backwards
compatible.
Closing this issue.
--
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