getting __DIR__ and __TIME__ of compilation?

Ravn ravndust at gmail.com
Fri Dec 27 12:14:00 PST 2013


On Friday, 27 December 2013 at 19:35:23 UTC, Jacob Carlborg wrote:
> On 2013-12-27 19:14, Ravn wrote:
> __FILE__ will return the full path (absolute path) of the file 
> currently compiling. But that is not the same thing as getting 
> the path to where the compilation was made.

Eh, it does? :-?
It prints a relative path when I used writeln(__FILE__), I'm on 
windows 7.

On Friday, 27 December 2013 at 19:35:23 UTC, Jacob Carlborg wrote:
> On 2013-12-27 19:14, Ravn wrote:
> I would guess you could use __FILE__ with dirName, but that 
> currently does not compile.

Tried enum path = dirName(__FILE__), compiles normally, no error 
from the compiler, but it still returns a relative path instead 
of a fullpath in my machine.


More information about the Digitalmars-d-learn mailing list