On Friday, 27 May 2016 at 10:14:31 UTC, Era Scarecrow wrote:
inc dword ptr [EAX+Foo.x.offsetof];
So just tested it, and it didn't hang, meaning all unittests also passed.
Final solution is: asm pure @nogc nothrow { mov EAX, this; add dword ptr [EAX+wideIntImpl.lo.offsetof], 1; adc dword ptr [EAX+wideIntImpl.lo.offsetof+4], 0; adc dword ptr [EAX+wideIntImpl.hi.offsetof], 0; adc dword ptr [EAX+wideIntImpl.hi.offsetof+4], 0; }