Re: why doesn't this compile ?
- From: Richard E Maine <nospam@xxxxxxxxxxxxx>
- Date: Thu, 28 Apr 2005 08:40:52 -0700
In article <1114673665.233497@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Bart Vandewoestyne <MyFirstName.MyLastName@xxxxxxxxxx> wrote:
> Just for your information, and not requesting you to give comments on it
> if you're in grump mode ;-)
I'm better now. :-)
> This was the original example:
>
> http://www.cs.kuleuven.ac.be/~bartv/downloads/test_array_arguments_02.f95
Interesting. This is a variant of an issue that is addressed (with a
quite simple fix) in f2003. I had not seen quite this variant, with
internal procedures, but still it is recognizable as a variant of the
same thing.
Up though f95, there are 2 options for specifying a specific procedure
in a generic interface block. You either have an interface body or use a
module procedure statement. If you have a procedure whose interface is
already explicit, but which is not a module procedure, then this is
awkward.
In f2003, this is solved by dropping the keyword "module" from the
module procedure statement. The restriction to module procedures was
silly in the first place; the only thing important was that an explicit
interface be accessible. Of course, the keyword "module" is still
allowed for compatibility with existing code (and in that case, it is
restricted to being a module procedure just because it is strange to
have a "module procedure" statement refer to something that isn't). But
there will probably be little reason for using the "module" keyword in
new f2003 code except for issues of compatibility with f90/f95
compilers; it doesn't add any useful functionality.
--
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
.
- Follow-Ups:
- Re: why doesn't this compile ?
- From: Ken Fairfield
- Re: why doesn't this compile ?
- From: James Van Buskirk
- Re: why doesn't this compile ?
- From: Bart Vandewoestyne
- Re: why doesn't this compile ?
- References:
- why doesn't this compile ?
- From: Bart Vandewoestyne
- Re: why doesn't this compile ?
- From: Richard E Maine
- Re: why doesn't this compile ?
- From: beliavsky
- Re: why doesn't this compile ?
- From: Richard Maine
- Re: why doesn't this compile ?
- From: Bart Vandewoestyne
- why doesn't this compile ?
- Prev by Date: Re: strange linking problem
- Next by Date: Re: strange linking problem
- Previous by thread: Re: why doesn't this compile ?
- Next by thread: Re: why doesn't this compile ?
- Index(es):
Relevant Pages
|