YAAO (yet another assignment op
Mark Wittenberg
mark at rtech.ARPA
Tue Feb 12 09:41:37 AEST 1985
> One I can't remember being mentioned so far :-
>
> ->=
>
> Then you can use
>
> p ->= next;
>
> for chasing down lists!
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
More information about the Comp.lang.c
mailing list