> ----------
> From: Jukka-Pekka Makinen[SMTP:[log in to unmask]]
> Reply To: Jukka-Pekka Makinen
> Sent: Tuesday, July 13, 1999 12:47 AM
> To: [log in to unmask]
> Subject: array of pointers
>
>
> Hi,
>
> I need an array of pointers. The one below gives a pointer to an array
> of
> ct_type variables, not an array of pointers to ct_type variables. ok.
>
> Type ct_type
> ! Something.. integers, whatever.
> End Type ct_type
> Type big_type
> Type(ct_type),Dimension(:),Pointer :: ct
> End Type big_type
>
> How about..
>
> Type ct_type
> ! Something.. integers, whatever
> End Type ct_type
>
> Type p_type
> Type(ct_type),Pointer :: ct
> End Type p_type
>
> Type big_type
> Type(p_type),Dimension(:),Pointer :: p
> End Type big_type
>
> Now by allocating the pointer p in big_type I get a pointer to an
> array of
> p_type variables which in turn are pointers to ct_type variables. Now
> I
> have an array of pointers. Is this standard conforming?
>
Regards,
Jukka Makinen
==> I know this works on the digital Win/pc compiler. I also remember
doing something simmilar on the Sun and NAG Unix compilers. It should
be conforming. Am I missing something here?
Regards,
Mandeep
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|