May 11, 2019 [your code here] | ||||
---|---|---|---|---|
| ||||
@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); } |
Copyright © 1999-2021 by the D Language Foundation