(j3.2006) 08-267
Aleksandar Donev
donev1
Tue Sep 23 16:53:17 EDT 2008
Van (and Jim),
> If one can't reference a coindexed object that is polymorphic, or that
> has an allocatable ultimate component that is polymorphic or has a
> length parameter, why allow such objects to have codimensions in the
> first place?
I believe you and Jim are both missing an essential point. You *can* reference
components of such object since those are not polymorphic.
class(my_type), intent(in) :: x[*]
write(*,*) x[1]%my_counter
I think this leaves plenty of "reasonable" uses for co-arrays of extensible
type, even if it it may not appear too often.
Best,
Aleks
--
Aleksandar Donev, Ph.D.
Lawrence Postdoctoral Fellow @ Lawrence Livermore National Laboratory
High Performance Computational Materials Science and Chemistry
E-mail: donev1 at llnl.gov
Phone: (925) 424-6816 Fax: (925) 423-0785
Address: P.O.Box 808, L-367, Livermore, CA 94551-9900
Web: http://cherrypit.princeton.edu/donev
More information about the J3
mailing list