Throwable class design

Jonathan M Davis jmdavisProg at gmx.com
Thu Jan 31 19:04:57 PST 2013


On Friday, February 01, 2013 01:47:35 Andrej Mitrovic wrote:
> Another example, wrapping `format` to inject the local file and line:
> 
> string fmt(string file = __FILE__, size_t line = __LINE__,
> Args...)(string fmtStr, Args args)

Just remember that that means that you'll get a new template instantiation 
every time you use it (unless you did multiple on the same line).

- Jonathan M Davis


More information about the Digitalmars-d mailing list