🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #2455

Re: Fortran vs. C for numerical work

#2455
From: Karl Heuer
Date: Wed, 05 Dec 1990 17:37
14 lines
1223 bytes
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
Technical Details
Message-ID: <1990Dec05.173716.10101@dirtydog.ima.isc.com>
Path: arc1-ca.pugleaf.net!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
References: <1990Nov30.220756.9196@ariel.unm.edu> <8960029@hpfcso.HP.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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