Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: net.lang.c Subject: Re: swap() macro Message-ID: <1836@brl-smoke.ARPA> Date: Mon, 30-Jun-86 16:25:06 EDT Article-I.D.: brl-smok.1836 Posted: Mon Jun 30 16:25:06 1986 Date-Received: Tue, 1-Jul-86 03:54:13 EDT References: <1201@brl-smoke.ARPA> <193@stracs.cs.strath.ac.uk> <733@ho95e.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 6 In article <733@ho95e.UUCP> wcs@ho95e.UUCP (Bill Stewart 1-201-949-0705 ihnp4!ho95c!wcs HO 2G202) writes: >I'm not sure I can define what "work right" means in a swap :-) 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".