Mixin template parameter that is an undefined variable
    tcak via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Fri Oct 23 05:22:47 PDT 2015
    
    
  
[code]
mixin template Test(alias a){
	int a;
}
void main(){
	mixin Test!blah;
}
[/code]
Compiler says it doesn't know about "blah". My purpose is to
define the parameter as a variable. Is that possible?
    
    
More information about the Digitalmars-d-learn
mailing list