Swap operator ?

David Brown dlang at davidb.org
Thu Oct 11 19:57:04 PDT 2007


On Fri, Oct 12, 2007 at 08:15:30AM +0900, Bill Baxter wrote:

>>> a, b = b, a;
>>>
>> This is the *python* way, and I love that too.
>
> I don't know where that syntax came from, but but I'm pretty sure it 
> predates python by a good bit.  Probably Ada or something.

Ada doesn't have multiple assignment.  CLU had it in 1974, though.

David



More information about the Digitalmars-d mailing list