Le 27/12/2011 16:09, Andrei Alexandrescu a écrit :
On 12/27/11 5:27 AM, kenji hara wrote:
I've already posted a dmd patch to fix all of opDispatch problems:

https://github.com/D-Programming-Language/dmd/pull/280

As far a I understand you pass the whole template as a string inside
opDispatch? For example, say obj defines opDispatch:

obj.foo!(bar, baz)(a, b);

Would that be rewritten as

obj.opDispatch!("foo!(bar, baz)")(a, b);

?

That would be great.


I think a variadoic template is a better option because of scope issues. You may not know anymore what is bar or baz within opDispatch.

Reply via email to