Named return type > Out parameters

Bill Baxter wbaxter at gmail.com
Thu Nov 12 18:07:05 PST 2009


On Thu, Nov 12, 2009 at 5:42 PM, xx <xx at xx.com> wrote:
> 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.

Did go do away with the comma sequencing operator?
I can't find it.  That's the first thing D needs to do.

Otherwise
   a,b = function()
is difficult to make work.

--bb



More information about the Digitalmars-d mailing list