On Sep 14, 2004, at 12:40 PM, Aleksandar Donev wrote:
> Richard E Maine wrote:
>> Calling a procedure with an
>> incorrect character length is illegal
> Not according to F2x (page 269:5-9 in the draft) says one can associate
> an actual of larger length with a dummy of smaller length?
Oh yes. I forgot about that special case. Be aware that it is a special
case. As soon as you try to generalize it much, it won't work any more.
For example, it won't work with assumed shape. Likewise, the
business about being able to use character string actual arguments
with character array dummies is a sequence association trick and
thus won't work with generics (where rank matters); oh, I see you
ran into that (below).
The cases where I personally saw bugs were the other way around,
actual arguments shorter than the dummy.
> That's not what I meant. I was thinking the generic would have a
> character array dummy, and that you could call the generic with an
> actual that is a string of arbitrary length. This would seem to be in
> agreement with the changes to section 12, but I think generic
> resolution rules would prohibit it,
Yep. That only works for specifics, because rank has to match for
generics.
--
Richard Maine | Good judgment comes from experience;
[log in to unmask] | experience comes from bad judgment.
| -- Mark Twain
|