Re: Allocatable vs pointer in procedure resolution
From: Rich Townsend (rhdt_at_barVOIDtol.udel.edu)
Date: 07/30/04
- Previous message: Pierre Asselin: "Re: passing functions or subroutines in a subroutine"
- In reply to: r08n: "Re: Allocatable vs pointer in procedure resolution"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Jul 2004 09:09:34 -0400
r08n wrote:
> Rich Townsend <rhdt@barVOIDtol.udel.edu> wrote in message news:<ceavs9$r5h$1@scrotar.nss.udel.edu>...
>
>
>>The problem, in essence, is whether it is possible to distinguish
>>between the signatures of, for instance,
>>
>>real, dimension(:), pointer :: foo
>>
>>and
>>
>>real, dimension(:), allocatable :: foo
>>
>
>
> Why do you need different procedures? You can do [almost] the same things
> with both allocatable arrays and pointers.
I'm writing library routines, and I want the user to be able to
reallocate both POINTER and ALLOCATABLE arrays. Therefore, I have to
provide routines to handle both. I'd like to access these routines under
the same name, but from the replies I've had to my post (thanks to all
who responded!) it looks like this won't be possible.
cheers,
Rich
-- Dr Richard H D Townsend Bartol Research Institute University of Delaware [ Delete VOID for valid email address ]
- Previous message: Pierre Asselin: "Re: passing functions or subroutines in a subroutine"
- In reply to: r08n: "Re: Allocatable vs pointer in procedure resolution"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|