Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!hc!lll-winken!uunet!mcvax!ukc!icdoc!qmc-cs!jeremyr From: jeremyr@cs.qmc.ac.uk (Jeremy Roussak) Newsgroups: comp.lang.c Subject: Re: When is a statement an expression? Message-ID: <959@sequent.cs.qmc.ac.uk> Date: 29 Apr 89 08:25:24 GMT References: <1043@itivax.iti.org> <4011@ficc.uu.net> Reply-To: jeremyr@cs.qmc.ac.uk (Jeremy Roussak) Organization: Computer Science Dept, Queen Mary College, University of London, UK. Lines: 22 In article <4011@ficc.uu.net> peter@ficc.uu.net (Peter da Silva) writes: >In article <1043@itivax.iti.org>, scs@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@ficc.uu.net, +1 713 274 5180. >Personal: ...!texbell!sugar!peter, peter@sugar.hackercorp.com. It may be very Algol-ish, but it's certainly not BCPL. BCPL has a==0 -> 10, 12 It doesn't use if in that way, unles you include the valof/resultis clause. Jeremy Roussak Just a part-time hacker