On Sep 5, 2012, at 10:56, captaindet <2k...@gmx.net> wrote:
On 2012-09-04 15:36, Andrej Mitrovic wrote:
9/4/12, Ellery Newcomer<ellery-newco...@utulsa.edu> wrote:
On 09/04/2012 12:41 PM, Andrej Mitrovic wrote:
__FILE__?
It doesn't necessarily have the exact package hierarchy.
We could really use __MODULE__ then. I think it's been asked before
but I didn't see any enhancement request in buzilla.
+1 would love this too
so far tried to get away with __FILE__ but this has issues, as noted
before.
on a slightly different note, __FILE__ and __LINE__ are not quite
doing what they are supposed to do either:
http://dlang.org/template.html
Template Value Parameters
"The __FILE__ and __LINE__ expand to the source file name and line
number at the point of instantiation."
unfortunately, they only do this for functions (sort of¹), not for o
ther templates.
It should work for templates too; std.log uses this extensively. Or at
least it used to work. Can you post the code sample where it doesn't
work?