Array of pointers in Fortran

In order to have an array of pointers use the following form:

 type(objectContainer), allocatable :: some(:)  
 ...  
 type objectContainer  
   class(object), pointer :: toObj   
 end type   

Do not fall into the mistake to use the form below as it is a pointer to an array

 class(object), pointer :: some(:)   

nor

 type(object), pointer :: some(:)   

Comentaris

Entrades populars d'aquest blog

L'Europa del S. X al S.XIX

Renda fixa