Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!ubiquity From: ubiquity@cs.utexas.edu (Richard Hoffman) Newsgroups: comp.lang.fortran Subject: Re: global data Summary: Anyone for C? Message-ID: <16609@cs.utexas.edu> Date: 7 Jan 91 14:15:29 GMT References: <1991Jan7.131620.27789@msuinfo.cl.msu.edu> Distribution: usa Organization: Ubiquitous Productions, R. Hoffman Proprietor Lines: 18 In article <1991Jan7.131620.27789@msuinfo.cl.msu.edu> fox@DASHER.NSCL.MSU.EDU writes: >.. and since INCLUDE is not part of the FORTRAN-77 standard, there's no >portable way to get the effect of a global parameter statement. One way to get a semi-portable INCLUDE *anywhere* is to use the C preprocessor. You don't have to know anything about C, except for the rules of #include itself. C is widely available, so most installations will have it. I have frequently used it with FORTRAN, and also the C #define statements, which I find much more convenient than PARAMETER statements. It does add an extra step to program preparation, though. -- Richard Hoffman IBM Entry Systems Division (512) 823-1822 1529 Ben Crenshaw Way Austin, TX 78746 "Life is a gamble at terrible odds; (512) 327-9232 if it were a bet you wouldn't take it" (Tom Stoppard)