Private and Package dynamic dispatch, implemented as a library template!
Andrej Mitrovic
andrej.mitrovich at gmail.com
Sat Mar 30 05:12:35 PDT 2013
On 3/30/13, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:
> On 3/30/13, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:
>> The full implementation: http://dpaste.dzfl.pl/08278225
>
> Woops! It looks like it may have to become a mixin, since CanCall will
> fail to call private methods. So maybe the API would look like:
>
> mixin DynamicDispatch!(C, D, E) dynamic;
>
Well I was too excited, user-defined dynamic types will fail with this
template. I'll have to work more on it.
More information about the Digitalmars-d
mailing list