Re: double confusion
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Mon, 17 Jul 2006 11:38:52 -0700
Gordon Sande wrote:
(snip)
You could try to use an "IMPLICIT NONE" and see what happens.
Doesn't IMPLICIT have the same scoping problem as other declarations?
When you rely on defaults one of the problems is that you have
to know what the defaults actually are. In Fortran the default types
are integer and real according to the initial letter.
Fortran has no notion of file scope so the beginning is actually the
beginning of the main program. It would be much clearer if you had used
a PRGOGRAM statement. Then you would have gotten an obscure diagnostic
about two main programs which would have indicated that something was
not quite as you had guessed it to be.
-- glen
.
- Follow-Ups:
- Re: double confusion
- From: Gordon Sande
- Re: double confusion
- From: Richard Maine
- Re: double confusion
- 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
- double confusion
- Prev by Date: Re: F2008 draft
- Next by Date: Re: recl on g95 and gfortran
- Previous by thread: Re: double confusion
- Next by thread: Re: double confusion
- Index(es):
Relevant Pages
|
|