basic types and alias

Timon Gehr timon.gehr at
Tue Feb 14 06:16:55 PST 2012

On 02/14/2012 09:54 AM, Walter Bright wrote:
> On 2/12/2012 12:59 PM, Timon Gehr wrote:
>> The only workaround is to use template T(I...) if(I.length==1){}. Why
>> does it
>> make sense to treat alias parameters differently from alias
>> declarations and
>> tuple members? Why does it make sense to treat built-in types
>> differently from
>> user-defined types in this case?
> They really aren't the same thing,

That is my point: they should be, wherever practical.

> although alias declarations try to
> conflate the two, causing ugly hacks.

What kind of ugly hacks? Conflating them as much as possible is the 
right thing to do. This makes alias declarations, alias parameters and 
tuple parameters uniform. It is a special case less to remember and/or 
get confused about.

More information about the Digitalmars-d mailing list