Re: Overload on opDispatch ?

2009-12-05 Thread Tim Matthews
Jacob Carlborg wrote: Would it be a good idea to allow overloading on opDispatch to make the following compile, what do you think? import std.stdio; class C { void opDispatch(string s, ARGS...) (ARGS args) { writefln("S.opDispatch('%s', %s)", s, typeof(args).stringof); } v

Overload on opDispatch ?

2009-12-05 Thread Jacob Carlborg
Would it be a good idea to allow overloading on opDispatch to make the following compile, what do you think? import std.stdio; class C { void opDispatch(string s, ARGS...) (ARGS args) { writefln("S.opDispatch('%s', %s)", s, typeof(args).stringof); } void foo (string s)