DMD 1.031 and 2.015 releases
Russell Lewis
webmaster at villagersonline.com
Wed Jun 18 21:54:26 PDT 2008
Jason House wrote:
> Walter Bright wrote:
>
>> Some new stuff to make writing templates easier.
>>
>> http://www.digitalmars.com/d/1.0/changelog.html
>> http://ftp.digitalmars.com/dmd.1.031.zip
>>
>> http://www.digitalmars.com/d/2.0/changelog.html
>> http://ftp.digitalmars.com/dmd.2.015.zip
>
> Why is "alias" required when specifying a template parameter? It seems like
> the most accepting and general case. Why wouldn't it be the default?
The default is to interpret it as a type.
I have argued that actually we need a "type" keyword (or something like
it) to declare that a template parameter is a type. IMHO, a parameter
without a limiter should accept *any* type of valid parameter: type,
alias, or value.
More information about the Digitalmars-d-announce
mailing list