Boolean Operators Slighted in C
Frank Adams
franka at mmintl.UUCP
Wed May 7 06:17:25 AEST 1986
In article <12329 at ucla-cs.ARPA> jimc at ucla-cs.UUCP (Jim Carter) writes:
>I think it's useful! As written, of course, it's semantically invalid,
>but what you really mean is "v <= e" (sic) or, to demonstrate where it's
>really useful,
> array[horrendous] [subscript] [list] <= bigexpr;
> rather than
> if (array[h][s][l] < bigexpr) array[h][s][l] = bigexpr;
>Now "<=" already means something else so this syntax is not acceptable.
>How about "v < = e" with a mandatory blank? This is atrocious human
>engineering but at least is parseable. Anybody have any better ideas?
What you talking about isn't "<=". It's "\/=" (to use a notation which
showed up here recently). I.e., v = min(v,e), not v = v < e. The latter
really is pretty useless.
Frank Adams ihnp4!philabs!pwa-b!mmintl!franka
Multimate International 52 Oakland Ave North E. Hartford, CT 06108
More information about the Comp.lang.c
mailing list