Multiple alias this, what's the hold up?

Walter Bright newshound2 at digitalmars.com
Sun Jun 16 06:08:54 UTC 2019


On 6/15/2019 6:21 PM, Timon Gehr wrote:
> In terms of lookup, the issues with multiple alias this are the same as the 
> issues with multiple import declarations. Implicit conversions could use the 
> same lookup rules, but there would need to be a way to disambiguate. The code in 
> the compiler that implements import declarations is unlikely to be easily reusable.

Multiple alias this is multiple inheritance. Generally, if you find yourself 
wanting multiple inheritance, it's likely time to rethink the data structures.


More information about the Digitalmars-d mailing list