Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!philmtl!ray From: ray@philmtl.philips.ca (Raymond Dunn) Newsgroups: comp.lang.c Subject: Re: swap(x,y) Message-ID: <714@philmtl.philips.ca> Date: 20 Sep 89 13:10:55 GMT References: <8350@boring.cwi.nl> <14479@haddock.ima.isc.com> <1545@l.cc.purdue.edu> <10897@smoke.BRL.MIL> <604@rwthbs.UUCP> <4151@buengc.BU.EDU> Reply-To: ray@philmtl.philips.ca (Raymond Dunn) Organization: Philips Electronics Ltd. - St. Laurent P.Q., Canada Lines: 18 In article <4151@buengc.BU.EDU> bph@buengc.bu.edu (Blair P. Houghton) writes: >>And by the way: why do you need an operator for swapping? > >Because if a machine can do it with a coupla gates and half a cycle, >I'd like to do it with an operator. This sounds dangerously like the arguments made by Herman Rubin that 'C' should provide facilities to access all the functionality of the machine architecture in some direct way. Since when was that the goal of *any* language other than assemblers? Which particular architecture is the source of these language features? -- Ray Dunn. | UUCP: ray@philmt.philips.ca Philips Electronics Ltd. | ..!{uunet|philapd|philabs}!philmtl!ray 600 Dr Frederik Philips Blvd | TEL : (514) 744-8200 Ext : 2347 (Phonemail) St Laurent. Quebec. H4M 2S9 | FAX : (514) 744-6455 TLX : 05-824090