(j3.2006) defining a type with no components

John Reid John.Reid
Thu Apr 17 10:27:31 EDT 2014



Dan Nagle wrote:
> Hi,
>
> On Apr 16, 2014, at 17:34 , Malcolm Cohen <malcolm at NAG-J.CO.JP> wrote:
>
>> Try [452:34].  This answers all the definition questions.
>
> Which reads ?A derived-type scalar object is defined if and only if
> all its nonpointer components are defined.?
>
> So since foo has no nonpointer components, they?re all defined.
>
> It seems just as logical to say they?re all not defined,
> or all green, or all not green.

No. [452:34] says nothing about pointer components that are not defined 
or are green.
>
> Is there a more clear statement I missed?

But this is perfectly clear. So is the previous line for arrays:
"An array is defined if and only if all of its elements are defined."

Cheers,

John.

>
> Sorry for being obtuse.
>
> --
>
> Cheers!
> Dan Nagle
>
>
>
>
>
>
> _______________________________________________
> J3 mailing list
> J3 at mailman.j3-fortran.org
> http://mailman.j3-fortran.org/mailman/listinfo/j3
>



More information about the J3 mailing list