On Saturday, 30 August 2014 at 18:22:49 UTC, JD wrote:
Oops, I accidentally commented out the line allocating the
memory in the example code... sorry.
// this statement causes
core.exception.InvalidMemoryOperationError
// auto t = new char[4096];
should read:
// this statement causes
core.exception.InvalidMemoryOperationError
auto t = new char[4096];
Ah, of course. I could have seen that myself :-P
I can already say that it nevertheless works with DMD git. Will
test soon with Digger, unfortunately Bitbucket is currently down,
and Digger depends on it.