modulename

Ellery Newcomer ellery-newcomer at utulsa.edu
Tue Sep 4 13:13:16 PDT 2012


On 09/04/2012 12:41 PM, Andrej Mitrovic wrote:
> __FILE__?
>

It doesn't necessarily have the exact package hierarchy. e.g:

// wonka.d
module willy.wonka;

pragma(msg, __FILE__);

// end wonka.d


dmd wonka.d

gives

"wonka.d"

but

dmd willy/wonka.d

gives

"willy/wonka.d"


More information about the Digitalmars-d-learn mailing list