DMD 1.031 and 2.015 releases
janderson
askme at me.com
Wed Jun 18 08:39:49 PDT 2008
Robert Fraser 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
>
> Awesome; thanks!
>
> Out of curiosity, why doesn't return type deduction work for all
> functions (is this panned?). It seems to be possible to do:
>
> auto foo()()
> {
> return 10;
> }
>
> but not:
>
> auto foo()
> {
> return 10;
> }
>
> Allowing the latter would open up return type deduction for class member
> functions.
Makes sense to me, although the second version would have to be made
into a template. Why? Because what type is 10? Is it a int? a uint?
etc... If it was automatically made into a template I'd be cool with that.
-Joel
More information about the Digitalmars-d-announce
mailing list