Does D support nested Templates aka Higher Kinded Polymorphism?

sighoya sighoya at gmail.com
Tue Oct 3 13:53:58 UTC 2017


But when I write this to:

writeln(bar!(Bar,Foo,int)(Bar!(Foo,int)));

it complains by:

test.d(11): Error: template instance T!(S!int) does not match 
template declaration Bar(R, S)
test.d(11): Error: template instance T!(S!int) does not match 
template declaration Bar(R, S)
test.d(17): Error: template instance test.bar!(Bar, Foo, int) 
error instantiating




More information about the Digitalmars-d-learn mailing list