June 13, 2014 __traits(position,symbol) to get the file:line:column:index of a symbol (module,unittest etc) | ||||
---|---|---|---|---|
| ||||
Attachments:
| 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. |
Copyright © 1999-2021 by the D Language Foundation