dynamic classes and duck typing
Walter Bright
newshound1 at digitalmars.com
Tue Dec 1 14:30:48 PST 2009
Andrei Alexandrescu wrote:
> Parameters to dynDispatch (the user-defined forwarding function), NOT
> opDispatch. opDispatch can take _anything_.
>
> Sorry if I'm repeating what you know already, but I am obsessing over a
> small misunderstanding could end up hamstringing this very powerful
> feature.
>
> So: opDispatch has absolutely no restrictions except a string in the
> first static parameters position.
I agree and I'm not misunderstanding you. I'm just saying how Variant
should work, not opDispatch!
More information about the Digitalmars-d
mailing list