(j3.2006) Finalization ordering question
Jim Xia
jimxia
Wed Oct 24 10:13:01 EDT 2007
> > Sorry Kurt, you've just got a no vote from me. It's too late to
> > change rules now after we've implemented them all. IMHO the current
> > text of the finalization process is clear and unambiguous.
>
> So, when you say that the rules are clear, I assume you mean that the
> parent component finalizer is called for the whole base array, not
> elementally. Right?
>
> Cheers,
> Bill
No. The term "parent component" is only relevant to each individual
scalar element of the array, and it is treated almost the same as any
explicitly declared component (I just noticed in F2008, we introduced a
new term "direct component"). So the step 3 of the finalization process
is applied to each element using a scalar finalizer for the parent
component if there is one. You wouldn't finalize the parent component in
an array fashion just the same reason you don't do that for any
finalizable component of the derived type.
Cheers,
Jim Xia
XL Fortran Compiler Testing
IBM Toronto Lab at 8200 Warden Ave.
Phone (905) 413-3444 Tie-line 969-3444
D2/NAH/8200 /MKM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://j3-fortran.org/pipermail/j3/attachments/20071024/d9ee7753/attachment.html
More information about the J3
mailing list