www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - template bug in docu

reply nobody <nobody_member pathlink.com> writes:
Hello, 

i believe there is a bug in the documentation: 
Language -> Templates 

template TFoo(T) { T f; } 
alias TFoo(int) a; 
alias TFoo(int) b; 

must be  
template TFoo(T) { T f; } 
alias TFoo!(int) a; 
alias TFoo!(int) b; 
Jan 25 2006
parent "Walter Bright" <newshound digitalmars.com> writes:
Good catch. I'll fix it. 
Jan 25 2006