Template functions, can we make it more simple?

monarch_dodra monarchdodra at gmail.com
Fri Aug 2 14:55:07 PDT 2013


On Friday, 2 August 2013 at 21:36:38 UTC, SteveGuo wrote:
>> Note that currently this is parsed as having _only_ PARAMTYPE.
>
> I just tested _only_
>
> void foo(_only_ a)
> {
> }
>
> but the compiler complaints "undefined identifier _only_"

<facepalm />

He meant that when you only have a single token it is parsed as 
PARAMTYPE and not varname.

EG:

void foo(int);


More information about the Digitalmars-d mailing list