Path: utzoo!attcan!uunet!philmtl!ray From: ray@philmtl.philips.ca (Raymond Dunn) Newsgroups: comp.lang.c Subject: Re: swap(x,y) Message-ID: <719@philmtl.philips.ca> Date: 22 Sep 89 17:39:31 GMT References: <8350@boring.cwi.nl> <14706@bfmny0.UU.NET> <433@crdos1.crd.ge.COM> Reply-To: ray@philmtl.philips.ca (Raymond Dunn) Organization: Philips Electronics Ltd. - St. Laurent P.Q., Canada Lines: 22 In article <433@crdos1.crd.ge.COM> davidsen@crdos1.UUCP (bill davidsen) writes: > I don't agree that all of the features of the hardware should be in C >(or any other portable langauage), but swap is certainly a widely useful >operation in computer programs, and it could be represented by an >operator, thereby eliminating the need for all of the fancy, obscure, >and possibly non-portable things posted to the net in the last month or >so. But this is exactly the argument put forth by Herman for his various "widely useful operations". There is no doubt that swap is a common and useful function that is missing as a primitive in 'C'. Equally, there are many more. The discussion is obviously a religious one - where should the line be drawn. As such, it is probably not going to be profitable. -- 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