what should be added to C

Joseph D. Shapiro shap at bunker.UUCP
Tue Jun 17 02:46:23 AEST 1986


In article <788 at steinmetz.UUCP> davidsen at kbsvax.UUCP (Davidsen) writes:

>I really like this! I don't propose that we use it, but I like it! It
>reminds me that the only thing I miss in FORTRAN is the arithmetic IF,
>when I write certain types of quick and dirty comparisons. Perhaps we
>could also take inspiration from the ? triadic operator and use '$' for
>a quadradic operator, return different values for <, =, >.
>i.e.  n = (a$b : less() : equal() : greater());
>
>I don't think I'm serious...
>-- 
>	-bill davidsen

Interesting idea, but the syntax may be more consistent as...

	n = ( (expr) $ less() : zero() : greater() );

where if the expression evaluated as negative, less() would be invoked,
etc.

I don't think I'm serious either.
-- 
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

Joseph D. Shapiro			"He who hesitates
Bunker Ramo Information Systems		 is lunch"

...ittatc!bunker!shap
...decvax!bunker!shap



More information about the Comp.lang.c mailing list