1. Re: we need official libs : Swap
- Posted by Mathew Hounsell <mfh03 at UOW.EDU.AU>
Jul 19, 1999
-
Last edited Jul 20, 1999
> From: Talvitie <smtoa at SAUNALAHTI.FI>
> also swap() (or xchg if you like) would come in need. It really bugs me to
> write junk=a a=b b=junk instead of swap(a,b).
Unfortunately this requires that this function changes the contents of the
variables, which
does not fit properly into the language. Perhaps an operator is needed.
-------------------------
Sincerely,
Mathew Hounsell
mat.hounsell at excite.com