still problems with ?:
David Goodenough
dg at lakart.UUCP
Wed Jun 7 23:23:28 AEST 1989
>From article <2632 at solo1.cs.vu.nl>, by maart at cs.vu.nl (Maarten Litmaath):
> chris at 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)
--
dg at lakart.UUCP - David Goodenough +---+
IHS | +-+-+
....... !harvard!xait!lakart!dg +-+-+ |
AKA: dg%lakart.uucp at xait.xerox.com +---+
More information about the Comp.lang.c
mailing list