Named return type > Out parameters

Leandro Lucarella llucax at gmail.com
Thu Nov 12 19:17:15 PST 2009


Nick Sabalausky, el 12 de noviembre a las 22:13 me escribiste:
> "xx" <xx at xx.com> wrote in message news:hdidi8$213s$1 at digitalmars.com...
> > Next in the series of "How about Go's ____":
> >
> > (int var1, float var2) function();
> >
> > is much nicer, logical and consistent than:
> >
> > int function(out float var2);
> >
> >
> > Of course this requires multiple assignment, but that's another cool 
> > thing.
> >
> 
> I have always liked that idea, but the nice thing about "out" params is that 
> you can overload on them, and D can't overload on return values (apperently 
> there are problems with that). Anyone know if GoogleGo functions can be 
> overloaded on return value? (Or if it even does function overloading at all, 
> for that matter?) 

GoogleGo doesn't have function overloading at all.

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
Never let a fool kiss you, or let a kiss fool you



More information about the Digitalmars-d mailing list