swap(x,y)
Raymond Dunn
ray at philmtl.philips.ca
Sat Sep 23 03:39:31 AEST 1989
In article <433 at crdos1.crd.ge.COM> davidsen at 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 at 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
More information about the Comp.lang.c
mailing list