Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!gatech!bloom-beacon!eru!luth!sunic!mcsun!unido!rwthinf!rwthbs!hls From: hls@rwthbs.UUCP (H.L. Stahl) Newsgroups: comp.lang.c Subject: Re: swap(x,y) Message-ID: <604@rwthbs.UUCP> Date: 12 Sep 89 11:22:27 GMT References: <8350@boring.cwi.nl> <14479@haddock.ima.isc.com> <1545@l.cc.purdue.edu> <10897@smoke.BRL.MIL> Reply-To: hls@rwthbs.UUCP (H.L. Stahl) Organization: RWTH Aachen, Lehrstuhl f. Betriebssysteme Lines: 21 In article <10897@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn) writes: >In article <1545@l.cc.purdue.edu> cik@l.cc.purdue.edu (Herman Rubin) writes: > ... > >>This is another example of keeping the tools from the programmer. > >No, this is another example of not knowing how to use the tools that are >already provided. ^^^^^^^^^^^^^^^^^^^^^^^^^^^ VERY TRUE! And by the way: why do you need an operator for swapping? if it is for int, float, ..., it is quite simple; if it is for any structure, you should better use pointers instead, which is faster. Hans-Ludwig Stahl, Lehrstuhl fuer Betriebssysteme, RWTH Aachen | _ Kopernikusstr. 16, D-5100 Aachen, ..49-(0)241- 80 76 34 |_|_`__ > Domain: hls@informatik.rwth-aachen.de | |__) > uucp: ...!{seismo,mcvax,uunet}!unido!rwthinf!hls |__) > EARN/BITNET: HLS@DACTH01