(j3.2006) More stuff about elemental

Malcolm Cohen malcolm at nag-j.co.jp
Tue Mar 17 20:38:35 EDT 2009



Van Snyder wrote:
> 09-007:12.8.2p1 [318:12] says "If a generic name or a specific name is
> used to reference an elemental function, the shape of the result is the
> same as the shape of the actual argument with greatest rank."
>   
Looks strange, doesn't it.
> There's nothing subsequent in that paragraph about the case of an
> elemental function invoked by way of an operator.
>
> Shouldn't this sentence be simply "The shape of the result of a
> reference to an elemental function is the same as the shape of the
> actual argument with greatest rank."?
>   
I don't think so.  We don't call the syntactic operands to a defined 
elemental operation "actual arguments".  (Maybe it would be better if we 
did, but that's a different question.)
> The first sentence of 12.8.4p1 [319:2] appears not to contribute
> anything.
It does seem rather uninteresting.
>   Can it be safely removed?
>   
Probably.

Cheers,
-- 
......................Malcolm Cohen, Nihon NAG, Tokyo.




More information about the J3 mailing list