digitalmars.D - [your code here]
- Hello (18/18) May 11 2019 @nogc pure nothrow void mod(int *v)
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); }
May 11 2019