swap() macro
aka at cbrma.UUCP
aka at cbrma.UUCP
Tue Jul 8 04:37:02 AEST 1986
In article <2225 at umcp-cs.UUCP> chris at maryland.UUCP (Chris Torek) writes:
>In article <1836 at brl-smoke.ARPA> gwyn at brl.arpa (Doug Gwyn
>(VLD/VMB) <gwyn>) writes:
>>It may be amusing and/or instructive to contemplate the fact that
>>there is no way to write a function that exchanges the contents of
>>two variables in a language where parameters are passed "by name".
>
>How so? It seems rather simple. I have here a C program that effects
>call-by-name and does indeed perform a swap:
[ ... fragmen
x 39 T cd018211043435 cbuxd05279 cbuxd local
40 T cd018211590636 cbuxd06482 cbuxd local
41 T cd018213050437 cbuxa07806 cbuxa local
42 T cd018213051338 cbuxb07820 cbuxb local
43 T cd018213052139 cbuxd07838 cbuxd local
44 T cd018213052740 cblpe07854 cblpe local
45 T cd01
More information about the Comp.lang.c
mailing list