Swap operator ?

Michael Gnail gnail.f at gmail.com
Thu Oct 11 08:55:25 PDT 2007


Matti Niemenmaa wrote:
> BLS wrote:
>> Not really nessesary, but nice to have...
>> int a = 1;
>> int b = 2;
>> a <=> b // a == 2, b == 1
> 
> Or multiple return values, and then:
> 
> a, b = b, a;
> 
This is the *python* way, and I love that too.



More information about the Digitalmars-d mailing list