06-22-2003, 12:52 PM
Quote:Your second example about doing things the long way reminds me of my favorite example which is for using a flip/flop switch. If the switch is on (a one), you want to turn it off. If the switch is off (zero), you want to turn it on.
Code:flipflop = flipflop xor 1
Err...
Code:
flipflop = !flipflop
esus saves.... Passes to Moses, shoots, he scores!