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?

Reply via email to