Use of interface within module?
From: Andy (andy_at_ideafix.litec.csic.es)
Date: 10/22/03
- Next message: Eugene Miya: "Fall 2003 Computer History Museum Events"
- Previous message: David Young: "Debug with ArrayVisualizer"
- Next in thread: Richard Maine: "Re: Use of interface within module?"
- Reply: Richard Maine: "Re: Use of interface within module?"
- Reply: Michael Metcalf: "Re: Use of interface within module?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 22 Oct 2003 18:39:44 +0200
I have a compiler disagreement. Should the interface be used within the
module? and, if not, what is the reasoning?
module m
type a
...
end type
type b
...
end type
interface plot
module procedure plot_a, plot_b, plot_ab
end interface
contains
subroutine plot_a( a )
type(a_t) :: a
...
end
subroutine plot_b( b )
type(b_t) :: b
...
end
subroutine plot_ab( a, b )
type(a_t) :: a
type(b_t) :: b
call plot(a) ! Should this work?
call plot(b) ! Should this work?
...
end
end module
- Next message: Eugene Miya: "Fall 2003 Computer History Museum Events"
- Previous message: David Young: "Debug with ArrayVisualizer"
- Next in thread: Richard Maine: "Re: Use of interface within module?"
- Reply: Richard Maine: "Re: Use of interface within module?"
- Reply: Michael Metcalf: "Re: Use of interface within module?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|