blickstein@speedy.DEC (Dave Blickstein) (02/17/85)
Gee, I think any dedicated idiom freak would never use the example you gave to exchange two values. A much more "idiomatic" idiom for exchanging two values A and B is A = A XOR B; B = B XOR A; /* If you don't think this works A = A XOR B; write out a truth table */ Note that this version has the additional advantage of not requiring a temporary. Dave Blickstein (UUCP) {allegra|decvax|ihnp4|ucbvax}!decwrl!dec-rhea!dec-orphan!blickstein (ARPA) BLICKSTEIN%ORPHAN.DEC@DECWRL.ARPA