When is a statement an expression?

Peter da Silva peter at ficc.uu.net
Fri Apr 28 08:13:25 AEST 1989


In article <1043 at itivax.iti.org>, scs at vax3.iti.org (Steve Simmons) writes:
> 	a = if ( a == 1 )
> 		12 ;
> 	else
> 		14 ;

I modified a C compiler to do that once. It's very BCPL/Algol-ish. Rather
neat, too. Pity it's not 'C'.
-- 
Peter da Silva, Xenix Support, Ferranti International Controls Corporation.

Business: uunet.uu.net!ficc!peter, peter at ficc.uu.net, +1 713 274 5180.
Personal: ...!texbell!sugar!peter, peter at sugar.hackercorp.com.



More information about the Comp.lang.c mailing list