Feature discussion: __traits(getSource, function)

Adam D. Ruppe destructionator at gmail.com
Sat Oct 16 12:28:37 PDT 2010


Well, it sounds like I'm not the only one who'd find this useful, so I took a look
at the compiler.

It seems to only store file and line internally (I might have missed something
though) so the path of least resistance seems to be exposing that, and then
pulling the source with a library function.

But I'll keep looking, since avoiding the library function would be nice (no -J
and no bugs!).


More information about the Digitalmars-d mailing list