bug in mixin template elision

Bart Bart at gmail.com
Tue Jun 25 06:49:26 UTC 2019


On Tuesday, 25 June 2019 at 01:02:27 UTC, Adam D. Ruppe wrote:
> On Tuesday, 25 June 2019 at 00:42:25 UTC, Bart wrote:
>>    void fooo() { }    // Comment out and behavior changes!
>>    void mark() { fooo(); } // Seems mark does not lazily wait 
>> to see if fooo is defined outside the template but uses fooo 
>> directly.
>
> Just use
>
> void mark() { this.fooo(); }
>
> and it will use specifically the one off `this` instead of the 
> local scope.

This does work. I'm not sure if it is the correct behavior but at 
least it is somewhat logical and functional.


More information about the Digitalmars-d mailing list