Re: double confusion
- From: Richard Maine <nospam@xxxxxxxxxxxxx>
- Date: Mon, 17 Jul 2006 12:30:47 -0700
On Mon, 17 Jul 2006 11:38:52 -0700, glen herrmannsfeldt wrote
(in article <9IydnUs_ic-CRCbZnZ2dnUVZ_sqdnZ2d@xxxxxxxxxxx>):
Gordon Sande wrote:
You could try to use an "IMPLICIT NONE" and see what happens.
Doesn't IMPLICIT have the same scoping problem as other declarations?
For implicit other than NONE, yes, but implicit none is different. Yes,
it has the same scope as any other implicit, but the way you use it is
different, which matters.
It is good for debugging, and it most definitely will help debug this
particular problem. Try it and see. If you use implicit none in the
main program, it will bitch about the type of the function being
undeclared. It is true that if you put implicit none in the function,
that won't automatically propagate to the main program, but that's not
how one uses implicit none.
In particular, if you mistakenly think, as the OP apparently did, that
declaring the type in the function will be sufficient, then implicit
none will catch that error. Will and has.
--
Richard Maine | Good judgment comes from
experience;
email: my first.last at org.domain| experience comes from bad judgment.
org: nasa, domain: gov | -- Mark Twain
.
- References:
- double confusion
- From: Julian Bessenroth
- Re: double confusion
- From: michael
- Re: double confusion
- From: Julian Bessenroth
- Re: double confusion
- From: Ian Bush
- Re: double confusion
- From: Julian Bessenroth
- Re: double confusion
- From: Gordon Sande
- Re: double confusion
- From: glen herrmannsfeldt
- double confusion
- Prev by Date: gfortran binaries
- Next by Date: Re: double confusion
- Previous by thread: Re: double confusion
- Next by thread: Re: double confusion
- Index(es):
Relevant Pages
|
|