Thread View: net.lang.f77
1 messages
1 total messages
Started by Garry Wiegand
Mon, 03 Feb 1986 21:37
Re: Question on "Parameter" statement; and a new question!
Author: Garry Wiegand
Date: Mon, 03 Feb 1986 21:37
Date: Mon, 03 Feb 1986 21:37
27 lines
1701 bytes
1701 bytes
In a recent article donn@utah-cs.UUCP wrote: >Peter Shenkin's new question: > > ... I always thought PARAMETER definitions were not subject to > the IMPLICIT rules; VMS Fortran behaves according to my > preconception, at least in this example. >... I can help out a little, I think: There are TWO TYPES of "parameter" statements in VMS Fortran! If you use parentheses around the items in the list of parameters, the compiler follows the Fortran-77 rules -- the "parameter" behaves almost identically to the equivalent simple "data" statement. If you DON'T use parentheses, you get the old DEC Fortran-4-Plus "parameter" definition -- the parameters work like simple small macros, and the effective type of the parameter "name" is the type of the expression on the right. If you think you may have fallen across this, try compiling with a "/STANDARD" switch. (Hope you don't have too many ENDDOs or STRUCTUREs, or it will complain loudly indeed.) garry wiegand
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads