Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site geowhiz.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!uwvax!geowhiz!schuh From: schuh@geowhiz.UUCP (David Schuh) Newsgroups: net.lang.f77 Subject: Re: Question on "Parameter" statement; and a new question! Message-ID: <357@geowhiz.UUCP> Date: Thu, 30-Jan-86 23:25:56 EST Article-I.D.: geowhiz.357 Posted: Thu Jan 30 23:25:56 1986 Date-Received: Sat, 1-Feb-86 20:33:17 EST References: <410@cubsvax.UUCP> <413@cubsvax.UUCP> Reply-To: schuh@geowhiz.UUCP (David Schuh) Organization: UW Madison, Geology Dept. Lines: 36 In article <413@cubsvax.UUCP> peters@cubsvax.UUCP (Peter S. Shenkin) writes: >In article donn@utah-cs.UUCP (Donn Seeley) writes: >>Peter Shenkin asks why >> >> parameter (size = 10) >> character*size string > >OK, so I tried it the way you wrote it. Now it runs just fine under VMS, >but under ULTRIX (presumably the 4.2bsd f77 compiler) it bombs out, but >only because it thinks "size" is a REAL; "isize" works just fine. So a >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. So am I wrong, or is this YAf77B* ? > >Peter S. Shenkin, Columbia Univ. Biol. Sciences, NY, NY >{philabs,rna}!cubsvax!peters cubsvax!peters@columbia.ARPA Peter, I believe that even Parameter arguments must be previously, or implicitly declared. I bet if you put the statement IMPLICIT LOGICAL(a,z) before your parameter statement the compiler wouldnt like any of them. Actually this is a good idea (implicit something) maybe using complex would be even better, it makes misspellings etc easier to find, and is something I use in all of my progs. notice however it must appear in every subroutine and function. So to recap try implicit complex(orlogical)(a,z) integer size parameter (size = 10) etc... hope this helps (and is right) dave schuh uwisc madison physics and geophysics depts. !uwvax!geowhiz!schuh