Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site rtech.ARPA
Path: utzoo!utcs!lsuc!pesnta!hplabs!amdahl!rtech!mark
From: mark@rtech.ARPA (Mark Wittenberg)
Newsgroups: net.lang.c
Subject: Re: Re: YAAO  (yet another assignment op
Message-ID: <142@rtech.ARPA>
Date: Mon, 11-Feb-85 19:36:07 EST
Article-I.D.: rtech.142
Posted: Mon Feb 11 19:36:07 1985
Date-Received: Wed, 13-Feb-85 15:29:27 EST
References: <10983@watmath.UUCP> <21000020@uiucuxc.UUCP> <354@snow.UUCP> <141@rtech.ARPA>
Organization: Relational Technology, Berkeley CA
Lines: 27

> I always thought it would be sort of nice to have
> 	<=>
> as "swap": thus
> 	a <=> b;
> replaces
> 	some_type c;
> 	c = a;
> 	a = b;
> 	b = a;
> useful since "some_type" can't be decided dynamically.
> Also on some machines and for some "some_type" this
> can be done efficiently, even atomically, eg,
> 	register char	*a, *b;
> 
> 	a <=> b;
> on a 68000 is one instruction.
> 
> Mark Wittenberg
> Relational Technology, Inc.
> ucbvax!mtxinu!rtech!mark
> zehntel!rtech!mark

Well, thanks to the miracle of modern network delay, I see that someone
else has already suggested this operator, although I didn't see the proposed
syntax.  You can't win them all.

/mark