`ref T` should be a type!!

Victor Porton porton at narod.ru
Fri Mar 29 16:06:09 UTC 2019


That `ref T` (where T is a type) is not a type is a serious 
design error, because so `ref T` cannot be used as a template 
argument.

It is a very serious problem.

Even in C++ despite of all its silliness, T& is a type and can be 
used as a template argument.

Can the language be changed to resolve this problem?


More information about the Digitalmars-d mailing list