Path: utzoo!attcan!uunet!peregrine!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!ima!dirtydog!karl From: karl@ima.isc.com (Karl Heuer) Newsgroups: comp.lang.misc Subject: Re: Fortran vs. C for numerical work Message-ID: <1990Dec05.173716.10101@dirtydog.ima.isc.com> Date: 5 Dec 90 17:37:16 GMT References: <1990Nov30.220756.9196@ariel.unm.edu> <8960029@hpfcso.HP.COM> Sender: news@dirtydog.ima.isc.com (NEWS ADMIN) Reply-To: karl@ima.isc.com (Karl Heuer) Organization: Interactive Systems Lines: 14 In article <8960029@hpfcso.HP.COM> mjs@hpfcso.HP.COM (Marc Sabatella) writes: >Boolean operations: expressing them in numerical terms is an unnecessary (for >most Fortran programmers) generalization. Not that this stops Fortran programmers from writing Y+C*(Y-X) when they want C?X:Y (and they "know" that .TRUE. is implemented as -1). >And why do you need parentheses around the "if" argument? Huh? Both C and Fortran need them, and for exactly the same reason. This is a reasonable question from a Pascal user, and the counter is "Why does Pascal need a THEN keyword?" Karl W. Z. Heuer (karl@ima.isc.com or uunet!ima!karl), The Walking Lint