bug in mixin template elision
    Adam D. Ruppe 
    destructionator at gmail.com
       
    Tue Jun 25 01:02:27 UTC 2019
    
    
  
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.
    
    
More information about the Digitalmars-d
mailing list