Re: optional or interface
- From: Arjen Markus <arjen.markus@xxxxxxxxxx>
- Date: Tue, 3 Jun 2008 10:28:03 -0700 (PDT)
On 3 jun, 18:30, Paul van Delst <Paul.vanDe...@xxxxxxxx> wrote:
Richard Maine wrote:
Paul van Delst <Paul.vanDe...@xxxxxxxx> wrote:
Erm.. I'm not quite sure what you mean here. I use INTERFACE for
overloading, of course, but that's it. I don't use interface blocks (don't
see the point since I use modules). What do you mean by similar? Specific
to generic procedures?
You mean that you don't use interface bodies. An interface block is the
only way to define a generic. Yes, I realize that those two terms are
easy to confuse; I've regularly confused them myself.
Yep, you're right. I always confuse the terms. Thanks for catching that.
So, to be clear to the OP, I don't use interface bodies. (Keeping in mind that's a design
decision I made, not an indictment against interface bodies.)
cheers,
paulv
Interface bodies come in quite handy for situations where you can not
put the routine in a module:
- You only have the compiled version of a library
- The library is written in a different language (like C for instance)
By using such interface bodies you get the same validity checks as
with
modules, though it takes more work and you need to be careful in
specifying
the interfaces.
I have made it a rule for myself to put these interface bodies in a
module of
their own or part of a related module.
Regards,
Arjen
.
- Follow-Ups:
- Re: optional or interface
- From: Paul van Delst
- Re: optional or interface
- From: Mike
- Re: optional or interface
- References:
- Re: optional or interface
- From: Paul van Delst
- Re: optional or interface
- From: Mike
- Re: optional or interface
- From: Paul van Delst
- Re: optional or interface
- From: Richard Maine
- Re: optional or interface
- From: Paul van Delst
- Re: optional or interface
- Prev by Date: Re: Fortran 90 Chess
- Next by Date: Re: CPAN equivalent for fortran?
- Previous by thread: Re: optional or interface
- Next by thread: Re: optional or interface
- Index(es):
Relevant Pages
|
|