Declaring Ref Variables Inside Function Calls

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Mar 31 14:12:28 PDT 2009


Jarrett Billingsley wrote:
> On Tue, Mar 31, 2009 at 3:18 PM, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org> wrote:
>> import std.typecons;
>>
>> Tuple!(int, float) foo()
>> {
>>    return tuple(2, 4.5);
>> }
>>
>> The addition of the alias this feature and of constructor templates makes
>> std.typecons.Tuple even better.
>>
> 
> Cool, but..
> 
> Why not just make tuples first-class types?  <_<

Why not not?

Andrei



More information about the Digitalmars-d mailing list