"Andrej Mitrovic" <andrej.mitrov...@gmail.com> wrote in message news:mailman.851.1332059038.4860.digitalmar...@puremagic.com... > On 3/18/12, Derek <ddparn...@bigpond.com> wrote: >> What would be useful is ... >> bar!(a, b, c); // is equivalent to >> bar!(int, int, int).bar(a, b, c); > > You mean like this? > > template bar(T...) > { > void bar() { writeln(T); } > } > > void main() > { > int a = 1, b = 2, c = 3; > bar!(a, b, c); > }
Shouldn't that be: template bar(T...) { void bar(T args) { writeln(args); } } void main() { int a = 1, b = 2, c = 3; bar(a, b, c); } Or did I misunderstand the point?