1. Re: we need official libs : Swap

> 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

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu