[Issue 9463] make @safe "non-escapable"
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Feb  7 01:44:08 PST 2013
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=9463
--- Comment #8 from jfanatiker at gmx.at 2013-02-07 01:44:05 PST ---
Sadly, this compiles:
@safe int test2() {
    class Test {
        @system static this()  {
            int *p=new int;
            *p++=8;
        }
    }
    return 10;
}
So no silver bullet either, but smart filtering of source code, disallowing
mixin and static this, should do the trick.
-- 
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