[your code here]

Hello hello at world.com
Sat May 11 23:37:15 UTC 2019


@nogc pure nothrow void mod(int *v)
{
     scope(exit)
     {
         scope(exit)
         {
             *v = 1;
         }

         *v = 2;
     }
}

void main()
{
     @nogc pure nothrow int n = 0;
     mod(&n);

     import std.stdio;
     writefln("n = %d", n);
}


More information about the Digitalmars-d mailing list