On Sun, 2006-05-14 at 12:45 -0700, Casey Marshall wrote: > Yeah, I figured out what you were doing when going to sleep last > night ;-) > > But still, wouldn't an && be better for that?
if( callA() == 0 && callB() == 0 ) result = value1; else result = value2; Versus: result = ((callA() | callB()) == 0) ? value1 : value2; See? Shorter code! ;) -- Sven de Marothy <[EMAIL PROTECTED]>