DIP66 - Multiple alias this

IgorStepanov via Digitalmars-d digitalmars-d at puremagic.com
Sun Oct 19 21:52:11 PDT 2014


On Monday, 20 October 2014 at 00:23:46 UTC, Daniel N wrote:
> On Wednesday, 15 October 2014 at 09:50:17 UTC, IgorStepanov 
> wrote:
>> In first edition I've implemented rule, when if type defines 
>> alias this directly, this alias hides all indirect aliases 
>> with the same type. However Andrey said that we should 
>> implement the strictest rules as possible and maybe relax them 
>> later.
>> Thus I implemented current rules, but saved the old 
>> implemetation of search. After some time we will able to 
>> return to first rule. It's not hard.
>
> I see, in order to prevent any accidental shadowing, maybe one 
> can consider "override alias this", if we decide to make a 
> relaxed version in the future?

Make sense. I think we should postpone but not forgotten this 
feature.
When main part will be merged, we will able to start discussion 
about override alias this.

What about the other features?


More information about the Digitalmars-d mailing list