opDispatch is grand!

Ellery Newcomer ellery-newcomer at utulsa.edu
Sat Apr 10 19:23:34 PDT 2010


On 04/10/2010 09:04 PM, BCS wrote:
> Hello Ellery,
>
>
> I think you might be able to do:
>
> ret!(T) opDispatch(string s, T)(T t) { ... }
>
> and then switch internally based on T.
>

I don't think so; it looks like dmd rewrites invocations as opDispatch!("x")



More information about the Digitalmars-d mailing list