Aleksandar Donev wrote:
> No, arg(2) is a scalar, so it cannot be passed to sub.
Sorry, I take this back, Drew is correct that the cryptic rules allow
for an element of an array to be passed to sub. And yes, I agree that
this is pretty confusing and messed up.
The reasons are historical and how people used assumed-shape and even
explicit-shape arrays in old days, and many of course still do by
virtue of inheriting codes.
Aleks
|