optional arguments in subroutine or using generic procedure
- From: "Mike" <acout@xxxxxxx>
- Date: 13 Jul 2006 07:50:38 -0700
Hi,
I want to write a subroutine with flexible numbers of arguments. One
of the argument 'ID' will decide how many arguments this subroutine
would have. If ID=1, fewer arguments. If ID=2, add many additional
arguments. I am pondering if I have to write two subroutines with
different names and using generic procedure, or I write only one
subroutine with optional arguments declared. Currently, I've chosen
using generic procedure. However, it doesn't seem beneficially enough,
but only with length interface and a generic name only. So why use
generic procedure?
thank you.
Mike.
.
- Follow-Ups:
- Re: optional arguments in subroutine or using generic procedure
- From: Richard E Maine
- Re: optional arguments in subroutine or using generic procedure
- From: Paul Van Delst
- Re: optional arguments in subroutine or using generic procedure
- Prev by Date: Re: a flexible number of derived type
- Next by Date: Re: optional arguments in subroutine or using generic procedure
- Previous by thread: Initialisation of multidimensional array
- Next by thread: Re: optional arguments in subroutine or using generic procedure
- Index(es):
Relevant Pages
|