(j3.2006) 08-267

Van Snyder van.snyder
Wed Sep 24 13:47:04 EDT 2008


Jim Xia wrote:
>
> j3-bounces at j3-fortran.org wrote on 09/23/2008 11:18:51 PM:
>
> > j3-bounces at j3-fortran.org wrote on 09/23/2008 10:48:38 PM:
> >
> > > This means we should prohibit
> > >
> > >   class(my_type), intent(in) :: x[*]
> > >   select type ( x )
> > >   type is ( my_extension )
> > >     print *, x[1]%extra_stuff
> > >   end select
> > >
> > > because the dynamic type of X might be different from the type of
> > > X[1].  Or... we should prohibit SOURCE= and MOLD= for coarray 
> allocations.
> >
> > Hmm..., I don't even understand what this code fragment means: the
> > associate name, x, in the select type construct is revering to a
> > local variable, and it says if it is my_extension, then refers to
> > extra_stuff on image 1?  I think we should prohibit coindexed
> > objects with base-object being associate name.
>
> On another thought, I believe we should say that associate-name does 
> not have the CODIMENSION attribute.  I'll submit an J3 paper for this.

This is a bad idea, unless it's restricted to polymorphic coarrays.  If 
allocating polymorphic coarrays using SOURCE= or MOLD= is prohibited, 
this is a bad idea, period.

> Cheers,
>
> Jim Xia
>
> RL Fortran Compiler Test
> IBM Toronto Lab at 8200 Warden Ave, Markham, On, L6G 1C7
> Phone (905) 413-3444  Tie-line 313-3444
> email: jimxia at ca.ibm.com
> D2/YF7/8200 /MKM
> ------------------------------------------------------------------------
>
> _______________________________________________
> J3 mailing list
> J3 at j3-fortran.org
> http://j3-fortran.org/mailman/listinfo/j3
>   




More information about the J3 mailing list