Re: IMPLICIT NONE (F2k8+/-)
- From: "Edward N Bromhead" <edward.bromhead@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 24 Oct 2005 22:57:08 +0000 (UTC)
>> 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.
.
- References:
- IMPLICIT NONE (F2k8+/-)
- From: Gary L. Scott
- Re: IMPLICIT NONE (F2k8+/-)
- From: Edward N Bromhead
- Re: IMPLICIT NONE (F2k8+/-)
- From: robin
- IMPLICIT NONE (F2k8+/-)
- Prev by Date: Re: Calculating a program's run time
- Next by Date: Re: IMPLICIT NONE (F2k8+/-)
- Previous by thread: Re: IMPLICIT NONE (F2k8+/-)
- Next by thread: Re: IMPLICIT NONE (F2k8+/-)
- Index(es):
Relevant Pages
|