Nested template arguments

XavierAP n3minis-git at yahoo.es
Wed Aug 22 14:30:39 UTC 2018


Why

	foo!bar!x

is not understood as

	foo!(bar!x)

but instead gives an error "multiple ! arguments are not allowed"?
Precisely because multiple "!" can never belong to the same 
instantiation, why does the parser not understand without needing 
brackets that the rightmost template should be nested as the 
argument for the next one to the left?


More information about the Digitalmars-d-learn mailing list