Re: IMPLICIT NONE (F2k8+/-)




>> The type of user-defined functions is also given
>>at the outset of the code for that function.
>
> I thought that you were using implicit typing.
> If so, the type won't be specified explicitly.

Yes, you are correct. The examples I looked at in my own code were
a LOGICAL FUNCTION, which was therefore explicitly typed in the
statement at the start of the function, and a
DOUBLE PRECISION FUNCTION (ditto).
I didn't get as far as looking at REAL and INTEGER functions ...
probably because I don't think I've ever used the latter, and normally use
DOUBLE PRECISION rather than REAL. My use of
DOUBLE PRECISION also accounts for me saying that
arrays are explicitly declared - they have to be where there is no
"auto double precision" compiler switch ... and force of habit has me
declaring INTEGER arrays in a type statement, not a DIMENSION
statement, probably to be complementary to the declaration
of floating point stuff.

Eddie B.



.



Relevant Pages

  • Re: double precision g77
    ... this is Fortran 77 (with some extensions). ... double precision, other than by declaring them as such with a double ...
    (comp.lang.fortran)
  • Re: String data - right truncation error with numeric fields!!!
    ... When you are declaring your variables, ... precision and scale with your data types. ... data types with precision and scale - e.g. ...
    (microsoft.public.sqlserver.odbc)
  • Re: What is Negative Energy ???
    ... and then declaring, on the basis on his declaration to being a ... I 'll remind him of that standard applied to him, ... a lack of precision, to remind him a reasonable standard of precision ...
    (sci.physics.relativity)
  • Re: variable names for different fortrans
    ... though it also applies to external procedures in free-form source: ... Beware of implicit typing. ... Just because you have only declared MYVAR as DOUBLE PRECISION doesn't mean it's actually double precision everywhere. ...
    (comp.lang.fortran)
  • Re: variable names for different fortrans
    ... though it also applies to external procedures in free-form source: ... Beware of implicit typing. ... Just because you have only declared MYVAR as DOUBLE PRECISION doesn't mean it's actually double precision everywhere. ...
    (comp.lang.fortran)