Prism 6.0 User's Guide

Derived Types

With the exception of constructors, Prism supports derived types in Fortran 90. For example, given these declarations:

type point3
 integer x,y,z;
end type point3
type(point3) :: var,var2;

you can use Prism commands with these Fortran 90 variables:

(prism) print var
(prism) whatis var
(prism) whatis point3
(prism) assign var=var2
(prism) print var%x
(prism) assign var%x = 70