The filename passed to the compiler is easy: __FILE__ works in D too, and you can just strip off extra path info with ordinary functions (like std.path's basename or dirname functions).

Reply via email to