Selftype: an idea from Scala for D2.0

eao197 eao197 at intervale.ru
Sun May 27 10:15:54 PDT 2007


On Sun, 27 May 2007 11:24:40 +0400, Reiner Pope <some at address.com> wrote:

> As a side not, there's one pattern which could be interesting in this  
> kind of situation:
>
> template Subject(O, S)
> {
>      ... // Implementation details
>
>      alias Tuple!(Loggable, Dumpable, ...) ImplementedInterfaces;
> }
>
> ...
>
> class Account : Subject!(Notifier, Account).ImplementedInterfaces {
>      mixin Subject!(Notifier, Account);
> }

Wow! Thank!
It's very interesting idea.

-- 
Regards,
Yauheni Akhotnikau



More information about the Digitalmars-d mailing list