(j3.2006) Finalization ordering question

Aleksandar Donev donev1
Wed Oct 24 11:02:28 EDT 2007


Jim Xia wrote:

> 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.
It's been a while since I've read the rules, so a question. What if 
there is a rank-1 finalizer in the parent type, and the array being 
finalized is rank-1. Surely you would call the rank-1 parent finalizer 
just like you would call the rank-1 finalizer for the array of extended 
type???

The parent component is not like other components. We only call it that 
for syntax purposes. The parent component is part of yourself, and 
should be treated like you are. Otherwise, it bewilders me even more 
what these higher-rank finalizers would do...

I agree with you that each element should be finalized completely before 
moving on to other elements---but the ordering of the elements should be 
processor-dependent unless the finalizer is non-pure elemental, in which 
case the usual elemental ordering is used. But this is what I think 
should be, not necessarily what it says :-\

Thanks,
Aleks



More information about the J3 mailing list