On Sun, 15 Mar 2015 13:28:33 +0000, ketmar wrote: > template Foo(int a, string b) { > import std.format : format; > enum Foo = q{ > { > import std.conv : to; return %2$s+to!string(%1$s); > } > }.format(a, b.stringof); > } > > positional args, syntax highlighting, usage like `mixin(Foo!(42, > "z"));`. > maybe this will help.
ah, that `+`... ;-)
signature.asc
Description: PGP signature