Am 24.06.2012 02:09, schrieb Robert Clipsham:
#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/

Nice workaround, but I hope there will be sometime a proper solution in DMD :/

*dreams*

Reply via email to