how to use an array as subroutine arguments? 
Author Message
 how to use an array as subroutine arguments?

Quote:

> What if I would like to do:

> Time.local(2003,5,16)

> which I happen to  have in an array,

> now = [2003,5,16]

> can I somehow pass it's contents as arguments?

> Time.local(now)

> db

Time.local(*now)

Regards,

Dan



Wed, 02 Nov 2005 02:24:58 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Detecting uninitialized subroutine argument used as array bound of another argument

2. A problem about using array as subroutine argument in F77

3. Subroutine arguments: arrays vs array slices

4. declaring array arguments in subroutines

5. Finding the size of array arguments in subroutines

6. passing array arguments to subroutines

7. Allocatable arrays as arguments to subroutine questions

8. array/scalar subroutine arguments

9. optional arguments in subroutine or using generic procedure

10. How to pas an overloaded subroutine as an argument to another subroutine

11. pass a subroutine (use derived data type) as an argument to another subroutine

12. array section as actual argument where dummy argument is INTENT(OUT)

 

 
Powered by phpBB® Forum Software