Re: What's the purpose of explicit interfaces?
- From: "Michael Metcalf" <michaelmetcalf@xxxxxxxxxxxxxx>
- Date: Sat, 18 Mar 2006 19:00:36 GMT
"Joe Krahn" <jkrahn@xxxxxxxxx> wrote in message
news:yMXSf.39900$915.37925@xxxxxxxxxxxxxxxxxxx
An explicit interface seems useful, but it makes sense to put it in an
include file and allow the described routines to include the definitions
to verify them, as in C. It seems that the usual idea is to use modules
instead of definition headers. So, what is the use of writing out an
explicit interface? If it is sometimes useful, why not allow the described
routine to include and validate the accuracy of that definition?
Usually, an explicit interface is defined by placing the procedure in
question within a module or using it as an internal procedure. No further
work is necessary. The only time that it should be spelled out is when it
defines the interface of a procedure argument (MR&C, Section 5.12), or when
dealing with external procedures from legacy Fortran 77. Even there, an
eternal statement would suffice but allows no checks to be made.
Regards,
MikecMetcalf
.
- Follow-Ups:
- Re: What's the purpose of explicit interfaces? (Pun intended?)
- From: N. Shamsundar
- Re: What's the purpose of explicit interfaces? (Pun intended?)
- References:
- What's the purpose of explicit interfaces?
- From: Joe Krahn
- What's the purpose of explicit interfaces?
- Prev by Date: Re: Translate Fortran to Java
- Next by Date: Re: Anyone for help with DEC (Vax) Fortran-IV ?
- Previous by thread: What's the purpose of explicit interfaces?
- Next by thread: Re: What's the purpose of explicit interfaces? (Pun intended?)
- Index(es):
Relevant Pages
|
|