static foreach not working with this

Michelle Long HappyDance321 at
Mon Jan 7 16:01:50 UTC 2019

static foreach(k, p; AliasSeq!(this, s))		
{{; // Fails even if this line is removed

this not known at compile time. replace s with this and it works! 
s is an argument which is also not known at compile 

Should work with this.

Just "simplifying";;

(obviously more complex code)

More information about the Digitalmars-d-learn mailing list