Slimelite BBS

possible incorrect assignment

Back to R25C

From Ben Donnachie · 1996-04-01 00:30 · #75165 in R25C

Hi Ian!

Monday March 25 1996 23:20, Ian James Abbott wrote to David Otton:

 IA> the temporary variable name in the macro needs to be different to any
 IA> variable name it is called with.

    You don't need a temporary variable if you are swapping ints!

    Give the following a try...

    y ^= x
    x ^= y
    y ^= x

Bye for now !

    Ben

---
 * Origin: Pythagoras Software (UK) (2:440/106.125)