(j3.2006) Finalization ordering question
Jim Xia
jimxia
Wed Oct 24 16:25:20 EDT 2007
j3-bounces at j3-fortran.org wrote on 10/24/2007 04:04:23 PM:
> The parent is not required to have a finalizer of any particular rank.
> If it happens to have one of the right rank, then Step 1 will result in
> a final routine being called. Otherwise, you fall through to Step 2.
> Same as starting with any entity at Step 1.
Right, only if things are done correctly in the first place. Think about
the case that you're handed over a library where you have no control over
the source, are you going to call the supplier to teach its programmers
about finalizations?
> final routine with a non-contiguous argument. Effectively, an array
^^^^^^^^
> dummy argument in a final routine always needs to be assumed shape.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Agreed 100%. I'll be happy to see this as a written requirement (a
constraint).
> If f03 had impure elementals, it might have made more sense for that to
> be the only option. It would have simplified the rules. I think
> performance is somewhat secondary here. People who write a bunch of
> finalizers probably flunked out of (or never attended) performance
> school anyway.
>
> Cheers,
> Bill
I'm laughing reading this. Now we agree performance is a secondary issue
when finalizations are involved.
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/988a2c49/attachment-0001.html
More information about the J3
mailing list