From Ian James Abbott · 1996-04-09 07:44 · #75279 in R25C
In reply to possible incorrect assignment by Ben Donnachie
From: jambo@spuddy.mew.co.uk (Ian James Abbott) Yo Ben! >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 Yes, I knew that, but I just needed a simple example and the above trick is less obvious and also likely to be less efficient (depending on how good the optimiser is). -- * Meeeow! Call Spuddy on +44 1268 515441 for FREE mail & Usenet access. * --- ifmail v.2.8c * Origin: Spud's Public Usenet Domain (2:257/108.12@fidonet)