full path to source file __FILE__

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jul 22 06:16:01 PDT 2016


On Friday, 22 July 2016 at 10:51:57 UTC, Kagamin wrote:
> Don't just ignore Adam's question :)

eh he answered it.

On Windows, it is somewhat common for things to be loaded or 
modified (especially on older versions when these were still 
writable...) from the program's directory. Its support files are 
all put together with the exe.

He's trying to make a "script" that is run with rdmd that 
pretends to work just like an exe and works with files around it.


More information about the Digitalmars-d-learn mailing list