www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - multiple alias this in class/struct not allowed?

reply =?ISO-8859-1?Q?Adam_Cig=E1nek?= <adam.ciganek gmail.com> writes:
Hello,

Why are multiple alias this declarations in a class/struct not
allowed? This page
http://www.digitalmars.com/d/2.0/class.html#AliasThis says so, and
also dmd2 gives me an error when I try to do it, but TDPL says
something different (on page 231): "a class could introduce any number
of alias this declarations, thus subtyping any number of types."). Did
this feature change? Or is it a bug?

adam.
Nov 08 2010
parent bearophile <bearophileHUGS lycos.com> writes:
Adam Cigánek:

 Why are multiple alias this declarations in a class/struct not
 allowed?

Feature not implemented yet :-) (It's not just a matter of implementation: I am not sure the design of the semantics of it is finished). Bye, bearophile
Nov 08 2010