Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!cornell!batcomputer!itsgw!steinmetz!davidsen From: davidsen@steinmetz.ge.com (William E. Davidsen Jr) Newsgroups: comp.lang.c Subject: Re: On Portability Message-ID: <12431@steinmetz.ge.com> Date: 26 Oct 88 17:50:53 GMT References: <4700026@m.cs.uiuc.edu> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: General Electric CRD, Schenectady, NY Lines: 11 Another thing to avoid is use of the triadic operator to return expressions of differing types for true and false. Some compilers won't, and some silently do it wrong. I've never seen one that didn't work as expected when a cast was used. ie. m += (a < b ? 0x221 : 14.2); -- bill davidsen (wedu@ge-crd.arpa) {uunet | philabs}!steinmetz!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me