Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!spool.mu.edu!uunet!comp.vuw.ac.nz!am.dsir.govt.nz!dsiramd!marcamd!mercury!fivegl!hugh From: hugh@fivegl.co.nz (Hugh Grierson) Newsgroups: comp.lang.c Subject: Re: cond. op. on ='s LHS Message-ID: <1991Feb18.141615.4381@fivegl.co.nz> Date: 18 Feb 91 14:16:15 GMT References: <4155@cernvax.cern.ch> <1991Feb13.223412.28254@grebyn.com> Reply-To: hugh@fivegl.co.nz (Hugh Grierson) Organization: 5GL International Ltd, Auckland, New Zealand Lines: 20 In article <1991Feb13.223412.28254@grebyn.com> ckp@grebyn.com (Checkpoint Technologies) writes: >In article <4155@cernvax.cern.ch> burow@cernvax.cern.ch (burkhard burow) writes: >>I'm wondering if anyone has any comments on using: >> >> *(a==b?&c:&d) = 1; [general Ugh comments...] >The only time I would use the first form is in a macro, in a situation >where I really wanted an expression rather than a statement. But that's >all. Even then it would be better to use... #define cord(a,b,c,d) (a==b?c=1:d=1) -- Hugh Grierson hugh@fivegl.co.nz | Perfection is attained not when there is 5GL International Ltd, | no more that can be added, but when there Auckland, New Zealand | is no more that can be taken away.