modulename
Jonathan M Davis
jmdavisProg at gmx.com
Wed Sep 5 11:09:26 PDT 2012
On Wednesday, September 05, 2012 11:05:10 Jose Armando Garcia wrote:
> 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?
Regardless of whether it works, __FILE__ and __LINE__ should be used as
template arguments with extreme caution, because you end up with a new
instantiation for _every_ use (at least if you use both together).
If it's broken, it should certainly be fixed, but it's not a feature to be used
lightly.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list