modulename

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue Sep 4 12:41:24 PDT 2012


__FILE__?

On 9/4/12, Ellery Newcomer <ellery-newcomer at utulsa.edu> wrote:
> anybody know a neat trick to get the module name that a function is
> being called in a la
>
> void foobar(size_t line = __LINE__) {
> }
>
> std.traits.moduleName looks like it almost does it, but it needs a
> symbol from the module.
>


More information about the Digitalmars-d-learn mailing list