http://d.puremagic.com/issues/show_bug.cgi?id=2584
Iain Buclaw <ibuc...@ubuntu.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |FIXED --- Comment #6 from Iain Buclaw <ibuc...@ubuntu.com> 2012-10-10 02:37:40 PDT --- Note: The D2-way of doing this is by using shared. struct Test { shared uint* ptr; uint write(uint i) { (*ptr) = i; return i; } } void main() { Test test; test.ptr = cast(uint*) 0xDEAD_BEEF; test.write(0); test.write(0); test.write(0); return; } Also guarantees that (*ptr) is stored thrice also. ---- _Dmain: .fnstart ldr r3, .L6 @baz mov r0, #0 str r0, [r3] str r0, [r3] str r0, [r3] bx lr .fnend Regards, Iain -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------