[comp.lang.c] Re^2: still problems with ?:

maart@cs.vu.nl (Maarten Litmaath) (06/10/89)

dg@lakart.UUCP (David Goodenough) writes:
\From article <2632@solo1.cs.vu.nl>, by maart@cs.vu.nl (Maarten Litmaath):
\> chris@mimsy.UUCP (Chris Torek) writes:
\> \...
\> \But e1?e2:e3 *can* be turned into (e1&&e2 || !e1&&e3)
\> 
\> But what if e1 == *p++?
\
\Simple:
\
\((a = *p++) && e2 ) || (!a && e3)

You didn't get the point.
-- 
 "Your password [should be] like your |Maarten Litmaath @ VU Amsterdam:
      toothbrush." (Don Alvarez)      |maart@cs.vu.nl, mcvax!botter!maart