getting __DIR__ and __TIME__ of compilation?

Ravn ravndust at gmail.com
Thu Dec 26 22:39:53 PST 2013


Hi, I'm trying get the directory path and time at which the
compilation was made (not when the program is run), something
similar like this example in Haxe
http://haxe.org/manual/macros#macro-functions

Is it possible to do so in D?
Something like __DIR__ and __DATE__ or __TIME__ in D traits maybe?
( http://dlang.org/traits.html#specialkeywords )

Thanks in advance
-Ravn-


More information about the Digitalmars-d-learn mailing list