On Wed, May 30, 2018 at 03:34:55PM -0400, Steven Schveighoffer via Digitalmars-d wrote: > On 5/30/18 3:05 PM, Daniel N wrote: > > > void func(NONE...)(string s, NONE, string file = __FILE__, size_t > > line = __LINE__) if(!NONE.length) > > { > > import std.stdio; > > writefln("%s:%d: msg=%s", file, line, s); > > } > > > > void main() {func("hello"); func("there"); > > } > > Very cool and interesting pattern. [...]
Note that this requires a recent version of DMDFE, because earlier versions are unable to handle additional arguments after a "..." parameter. T -- Why ask rhetorical questions? -- JC