Made a Rage-Comic about D

Robert Clipsham robert at octarineparrot.com
Sat Jun 23 17:09:35 PDT 2012


> #line is a godsend when working with string mixins.
>
> mixin(`#line ` ~ (30_000 + __LINE__).stringof ~ `
> // Some really long code here
> // The line numbers will be correct but plus 30_000
> // Making it fairly simple to debug.
> `);
>
> --
> Robert
> http://octarineparrot.com/

Actually, add another 1 to that, my bad!

--
Robert
http://octarineparrot.com/


More information about the Digitalmars-d mailing list