[fpc-devel] Proposal: Multiple assignments
Michael Schnell
mschnell at lumino.de
Fri Aug 6 11:13:38 CEST 2010
On 08/06/2010 10:45 AM, Sven Barth wrote:
> Am 06.08.2010 09:18, schrieb Michael Schnell:
>> On 08/05/2010 10:17 PM, _-jane-_ at web.de wrote:
>>> a,b:=0;
>> Does _any_ language support that paradigm ?
>
> Python:
> http://docs.python.org/reference/simple_stmts.html#assignment-statements
Seems like a different paradigm:
> i, x[i] = 1, 2
>
> Java: http://www.freejavaguide.com/assignment_operators.htm
> Although "a=b=c" is more like "assign c to b and assign (the new value
> of) b to a" (but it might work in C as well that way).
Seems like a different paradigm as well:
> d = a = b;
Michael
More information about the fpc-devel
mailing list