[fpc-pascal] Re: Changing variable in conditional
leledumbo
leledumbo_cool at yahoo.co.id
Thu Jan 10 12:27:36 CET 2013
> If Pascal /had/ to have some sort of multiple assignment, I'd have
thought borrowing an idea from Perl and doing something like
[a, b, c] := (d = e);
would have been minimally acceptable.
I would pick from Lua instead, it looks cleaner. Well... I'll make it
stricter though, by making the number of elements on both side must equal.
e.g.:
a,b,c := v1,v2,v3;
a,b := b,a; // value swapping
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Changing-variable-in-conditional-tp5712493p5712533.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
More information about the fpc-pascal
mailing list