Will alias this work for classes too?
davidl
davidl at 126.com
Wed Sep 12 22:56:23 PDT 2007
Ah, I haven't noticed such brilliant!
在 Thu, 13 Sep 2007 06:08:48 +0800,Janice Caron <caron800 at googlemail.com>
写道:
> Will alias this work for classes too?
>
> An in,
>
> class A { int a; }
> class B { int b; }
> class C { int c; }
>
> class X : A
> {
> B b;
> C c;
> alias b this;
> alias c this;
> }
>
> Fake multiple inheritance!
--
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
More information about the Digitalmars-d
mailing list