Re: Function argument



I think that you have answered your own question - use a COMMON block,
which should present no problems in any version of FORTRAN.

If you are unfamiliar with COMMON, I suggest:

1) Never use unlabelled COMMON

2) Remember can only be initialised at compile time via BLOCKDATA (and
a frequent error is to forget to link in BLOCKDATA).

3) Put COMMON, and associated type statements, in an INCLUDE file

Apologies if you already know this

Dave Flower

.



Relevant Pages

  • Re: Lost BLOCKDATA initialisation in LIB files
    ... On the assumption that the BLOCKDATA initialisations are done at link-time, ... COMMON from the host application with a separate BLOCKDATA; ... differing initializations are readily available. ... When used with a loader ...
    (comp.lang.fortran)
  • Re: When will this ng come to accept that Fortran needs to go "back to the future" ?
    ... Mandated backward compatibility is insuring fortran survival despite ... I fully agree with your comments about COMMON - used without tricks ... and if it isn't a nightmare for the compiler writer, ... Fortran programming - I never felt a real need for it - and I wrote ...
    (comp.lang.fortran)
  • Re: Strange Fortran version
    ... "ENTRY lable" was common in some Fortran IV subroutines and probably ... Fortran compilers (many were written as a higher exercise in M.SC tasks ...
    (comp.lang.fortran)
  • Re: When will this ng come to accept that Fortran needs to go "back to the future" ?
    ... Mandated backward compatibility is insuring fortran survival despite ... I fully agree with your comments about COMMON - used without tricks ... Fortran programming - I never felt a real need for it - and I wrote ... But I would support it if it can be done as a clean extension from the ...
    (comp.lang.fortran)
  • Re: keyword capitalization -- current practice
    ... with regards to capitalizing keywords in Fortran. ... I'm not convinced that you will find a single most common style. ... I've also seen styles where people capitalize the first letter of ...
    (comp.lang.fortran)