template alias argument accepts only class/interface types.

ag0aep6g anonymous at example.com
Sat Feb 23 23:03:41 UTC 2019

On 23.02.19 23:30, Alexandru Ermicioi wrote:
> According to 
> https://dlang.org/spec/template.html#TemplateAliasParameter, simple 
> types and arrays are excluded from the list of supported "alias X" 
> arguments. I'm wondering why do we have such limitation? Is there any 
> reasoning at limiting primitive types and arrays?

As far as I'm aware, there is no good reason. There's a Bugzilla issue 
for it that also gives some history:


Apparently even Walter has been convinced by now that it's a silly 
limitation which should be lifted.

More information about the Digitalmars-d-learn mailing list