Polymorphic variables are part of the latest Fortran standard (2003) and
at least one compiler (NAG) claims support for them. This would save
writing your own package, and avoids the issue below.
Cheers,
Bill
Drew McCormack wrote:
> Is it possible to override the pointer assignment operator =>? I am
> developing polymorphic types in Fortran 90. These types behave a lot
> like pointers or references in other languages, and it would be nice
> to be able to assign them to concrete types using => rather than =.
>
> Drew
>
> ---------------------------------------------------------
> Drew McCormack
>
> www.maniacalextent.com
--
Bill Long [log in to unmask]
Fortran Technical Support & voice: 651-605-9024
Bioinformatics Software Development fax: 651-605-9142
Cray Inc., 1340 Mendota Heights Rd., Mendota Heights, MN, 55120
|