int somefunc() @trusted { int a = systemfunc(); int b;
@safe { b = safefunc(); // calling systemfunc() not allowed; } return a + b; }
Martin Krejcirik via Digitalmars-d Fri, 06 Feb 2015 04:01:29 -0800
int somefunc() @trusted { int a = systemfunc(); int b;
@safe { b = safefunc(); // calling systemfunc() not allowed; } return a + b; }