Re: Array of subroutines
- From: beliavsky@xxxxxxx
- Date: 19 Jun 2006 05:41:14 -0700
Michael Metcalf wrote:
<snip>
call array (i, arg1, arg2, arg3)
and inside array:
subroutine array(index, arg1, arg2, arg3)
:
select case(index)
case(1)
call the_real_thing1(arg1, arg2, arg3)
case(2)
etc.
I would consider gathering arguments arg1, arg2, arg3 into a derived
type and making the derived type an argument of all the subroutines, so
that later one could effectively add or change arguments by changing
the components of the derived type.
.
- References:
- Array of subroutines
- From: John Keenan
- Re: Array of subroutines
- From: Brooks Moses
- Re: Array of subroutines
- From: Michael Metcalf
- Array of subroutines
- Prev by Date: Re: heap allocation of arrays
- Next by Date: Re: compile problem:subroutines in module procedure (CVF6.6)
- Previous by thread: Re: Array of subroutines
- Next by thread: Re: Array of subroutines
- Index(es):
Relevant Pages
|