opDispatch is grand!
BCS
none at anon.com
Sat Apr 10 19:27:56 PDT 2010
Hello Ellery,
> 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")
>
Oops, that should have been:
ret!(T) opDispatch(string s, T...)(T t) { ... }
--
... <IXOYE><
More information about the Digitalmars-d
mailing list