Declaring Ref Variables Inside Function Calls

Jarrett Billingsley jarrett.billingsley at gmail.com
Tue Mar 31 12:23:51 PDT 2009


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?  <_<



More information about the Digitalmars-d mailing list