pure vs writeln debugging

Daniel Murphy yebbliesnospam at gmail.com
Mon Feb 10 23:53:06 PST 2014


"Jesse Phillips"  wrote in message 
news:vaatltklsmbmdnabojip at forum.dlang.org...

> Wish it would work with @safe and nothrow too, granted writeln should 
> eventually be @safe/trusted anyway.

I just travelled back in time and granted your wish!


int x;
int* p;

void main() pure nothrow @safe
{
    debug x = 3;
    debug throw new Exception(null);
    debug *(p+7) = 2;
} 



More information about the Digitalmars-d-learn mailing list