On Thursday, 4 October 2018 at 03:06:35 UTC, Shachar Shemesh
wrote:
If you do *anything* to that program, and that includes even
changing its compilation flags (try enabling inlining), it will
stop working.
You should have known that when you found out it doesn't work
on ldc: ldc and dmd use the same front-end. If you think
something works fundamentally different between the two, you
are probably wrong.
For the love of Pete, that program was an example of how a move
hook should work, *not* a demonstration of achieving the DIP
behavior without changing the language. I know the example is
brittle and have said as much.