Multiple alias this, what's the hold up?

Guillaume Piolat contact+spam at spam.org
Mon Jun 17 05:03:34 UTC 2019


On Sunday, 16 June 2019 at 06:08:54 UTC, Walter Bright wrote:
> 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.

+1

And in D I've "needed" multiple inheritance exactly once, so I 
wonder what is the use case for multiple alias this...


More information about the Digitalmars-d mailing list