passing __FILE__, __MODULE__, etc... with varadic types

JS js.mdnq at gmail.com
Fri Jul 19 02:06:26 PDT 2013


I would like to pass to all my templates the file and module 
locations where they are used(this goes into a debugging system I 
have come up with).

The problem is, with varadic types being passed I can't do this:

template T!(T..., string file = __FILE__)

doesn't work.

I think there is no way around except to explicitly pass 
__FILE__... which would be a mess?


More information about the Digitalmars-d-learn mailing list