Debug prints in @nogc
Nordlöw via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Aug 30 12:03:06 PDT 2016
On Tuesday, 30 August 2016 at 17:11:48 UTC, Johannes Pfau wrote:
> Nice! Here's a slightly modified version:
> https://dpaste.dzfl.pl/8c5ec90c5b39
>
> This version does not need an additional delegate. It can be
> used like this:
>
> assumeNogc!writefln("foo %s", 42);
> assumeNogc!writeln("foo", 42);
Marvellous!
I update my cryptic but short-and-sweet `dln` at
https://github.com/nordlow/phobos-next/blob/master/src/dbg.d#L58
I would love to see this very useful little snippet make its way
into Phobos somehow. Any suggestions on how?
More information about the Digitalmars-d-learn
mailing list