Now that's a DIP that could use some love

jmh530 john.michael.hall at gmail.com
Fri Sep 18 12:48:29 UTC 2020


On Friday, 18 September 2020 at 09:32:29 UTC, claptrap wrote:
> [snip]
>
> Pretty cool that. It occurs to me that it may not be even 
> necessary to declare the template parameter up front, it could 
> just be...
>
> void foo(ArrayType!T x)
>
> That could be lowered / rewritten by the compiler back to..
>
> void foo(T)(ArrayType!T x)

I don't know. The compiler would need to know what T is. You 
might be special-casing a bit too much.


More information about the Digitalmars-d mailing list