March 30, 2013 Re: Private and Package dynamic dispatch, implemented as a library template! | ||||
---|---|---|---|---|
| ||||
On 3/30/13, Andrej Mitrovic <andrej.mitrovich@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;
|
March 30, 2013 Re: Private and Package dynamic dispatch, implemented as a library template! | ||||
---|---|---|---|---|
| ||||
On 3/30/13, Andrej Mitrovic <andrej.mitrovich@gmail.com> wrote:
> On 3/30/13, Andrej Mitrovic <andrej.mitrovich@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.
|
Copyright © 1999-2021 by the D Language Foundation