https://d.puremagic.com/issues/show_bug.cgi?id=12211
--- Comment #1 from Kenji Hara <[email protected]> 2014-02-20 21:07:40 PST --- In C++: #include <stdio.h> void foo(int& x) { printf("foo: x = %d\n", x); x = 3; } int main() { int a = 0; printf("a = %d\n", a); foo(a += 1); printf("a = %d\n", a); foo(a = 2); printf("a = %d\n", a); } Prints: --- a = 0 foo: x = 1 a = 3 foo: x = 2 a = 3 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
