full path to source file __FILE__

Kagamin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jul 22 11:43:49 PDT 2016


On Friday, 22 July 2016 at 13:50:55 UTC, Jonathan Marler wrote:
> shell/anypath> rdmd /somedir/clean.d
> Removing /somedir/build...

So for command rdmd /somedir/clean.d what __FILE__ contains? LDC 
tells me the same path as specified on the command line, and that 
is specified relative to current directory, where the compiler is 
called, so absolutePath(__FILE__) should give the right result.


More information about the Digitalmars-d-learn mailing list