[DIP] Resolution of Alias Template Parameters in Function Templates

Stefanos Baziotis sdi1600105 at di.uoa.gr
Mon May 20 18:20:06 UTC 2019


On Monday, 20 May 2019 at 18:12:08 UTC, jmh530 wrote:

> If you change the alias to
> alias Num(T) = T;
> and the second is statement to
> is(T : Num!U, U)
> then it becomes equivalent to what I had done above. This fails 
> for the same reason as discussed above.

But with the above reasoning we want this to fail (that is, 
evaluate is(T == int) as true and go there) because aliases and 
template aliases are indistinguishable from
the type they alias.


More information about the Digitalmars-d mailing list