[fpc-devel] Proposal: Multiple assignments
Alexander Klenin
klenin at gmail.com
Fri Aug 6 12:12:56 CEST 2010
On Fri, Aug 6, 2010 at 18:18, Michael Schnell <mschnell at lumino.de> wrote:
> a, b := myfunc(x);
>
> I felt that this makes some sense, but
Agree, especially combined with built-in "dummy" variable,
so you can do
(_, _, a, _, b) := FuncWithManyOutputs(x);
to get only some of outputs.
> a,b := 0 just as a short for
>
> a := 0; b := 0;
>
> does not seem like a great improvement.
Also agree.
--
Alexander S. Klenin
More information about the fpc-devel
mailing list