Random Suggestion: Swap Operator <=>?
bearophile
bearophileHUGS at lycos.com
Fri Jul 17 11:29:43 PDT 2009
Leandro Lucarella:
> A more general solution is supporting tuples in the language, then you can
> do something like:
> a, b = b, a;
I have implemented that time ago for ShedSkin, here George Sakkis (first answer) suggests how to minimize the number of auxiliary variables:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/a218f066bef2fc9e/931a4331b18bc5f5
Bye,
bearophile
More information about the Digitalmars-d
mailing list