Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!purdue!decwrl!decvax!ima!cfisun!lakart!dg From: dg@lakart.UUCP (David Goodenough) Newsgroups: comp.lang.c Subject: Re: still problems with ?: Message-ID: <562@lakart.UUCP> Date: 7 Jun 89 13:23:28 GMT References: <2632@solo1.cs.vu.nl> Organization: Lakart Corporation, Newton, MA Lines: 15 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) -- dg@lakart.UUCP - David Goodenough +---+ IHS | +-+-+ ....... !harvard!xait!lakart!dg +-+-+ | AKA: dg%lakart.uucp@xait.xerox.com +---+