Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!hc!lanl!jlg From: jlg@lanl.gov (Jim Giles) Newsgroups: comp.lang.fortran Subject: Re: Fortran vs C for computations Message-ID: <3342@lanl.gov> Date: 8 Sep 88 20:47:55 GMT References: <367@quintus.UUCP> Organization: Los Alamos National Laboratory Lines: 16 From article <367@quintus.UUCP>, by ok@quintus.uucp (Richard A. O'Keefe): > > Spot the hidden assumption? Right: #ifdef is used more often to select > which header files to #include, which of several sets of declarations > to use, and so on. Gee, you're right. I've never thought of that. I've never used #ifdefs for that reason. Of course, it would be a perfectly acceptable extension to Fortran to allow ordinary IF statements in this sort of context (with only constant conditional expressions of course). Still, I've never seen a compiler which would take that - score one for you! But then, back to my original point. Use #ifdef with your Fortran code. C does _not_ have a monopoly on preprocessors. J. Giles Los Alamos