Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!taumet!steve From: steve@taumet.com (Stephen Clamage) Newsgroups: comp.lang.c Subject: Re: cond. op. on ='s LHS Message-ID: <605@taumet.com> Date: 16 Feb 91 21:51:15 GMT References: <4155@cernvax.cern.ch> <1991Feb13.223412.28254@grebyn.com> Organization: Taumetric Corporation, San Diego Lines: 14 kers@hplb.hpl.hp.com (Chris Dollin) writes: >.. how would people feel if conditionals could deliver lvalues, ie, so that > (a == b ? c : d) = 1; >was legal and had the obvious meaning? As has been pointed out before, this is an extension to Gnu C. The expression is also legal C++, as long as c and d are both lvalues and have the same type (although not all compilers yet implement this feature). -- Steve Clamage, TauMetric Corp, steve@taumet.com