Wouldn't that be nice? it's all known at CT so why not expose it among other things it'd allow proper association of modules to files in stacktraces (sometimes this is impossible / ambiguous), custom user defined error messages involving lambdas, printing unittest lines etc.
__traits(position,symbol) to get the file:line:column:index of a symbol (module,unittest etc)
Timothee Cour via Digitalmars-d-learn Thu, 12 Jun 2014 22:20:24 -0700