On 3/7/2014 5:56 AM, Adam D. Ruppe wrote:
On Friday, 7 March 2014 at 04:19:16 UTC, Walter Bright wrote:
I'd rather fix the compiler's codegen than add a pragma.
The codegen isn't broken, the current this pointer behavior is needed for full
compatibility with the C ABI. It would be opt in to an ABI tweak that the caller
needs to be aware of rather than an traditional optimization where the outside
world would never know.
Oh, I see what you mean. But I think it does generate the same code, if you use
it the same way. There is no 'get' function for ints; you aren't using it the
same way.