Declaring Ref Variables Inside Function Calls

Bill Baxter wbaxter at gmail.com
Tue Mar 31 22:45:44 PDT 2009


On Wed, Apr 1, 2009 at 1:12 PM, Andrei Alexandrescu
<SeeWebsiteForEmail at erdani.org> wrote:
> Bill Baxter wrote:
>>
>> On Wed, Apr 1, 2009 at 10:53 AM, Andrei Alexandrescu
>> <SeeWebsiteForEmail at erdani.org> wrote:
>>
>>> I guess I can't bring myself to dislike tuple(1, 2) in D.
>>>
>>
>> I'd actually be a heck of a lot happier with that than Tuple!(1,2).
>> Especially if using it didn't require any explicit import.
>>
>> --bb
>
> Tuple!(...) tuple(...) { ... } is already in std.typecons.

Ok,didn't realize that.  But with that tuple(int,float) doesn't
compile, right?  I thought you were proposing that you could get rid
of Tuple!() entirely somehow and replace it with tuple().  That is
what I meant I could go for.

--bb



More information about the Digitalmars-d mailing list