(j3.2006) Get_Command_Argument

Malcolm Cohen malcolm
Wed Dec 14 22:15:50 EST 2011


Van Snyder asked:
>Is this legal?

[non-default-integer NUMBER argument to GET_COMMAND_ARGUMENT]

(the answer being clearly not)

and
> Should it have been legal in the latter two cases?

Bill Long replied:
>I don't think so.  We very often require "default" kinds and it would be
>tedious to everywhere insert "or kind=c_int", etc.  Since it is very
>unlikely that these inequalities would be true for a currently relevant
>compiler, it also seems unhelpful.

I take the opposite viewpoint: we have been removing default kind requirements 
when they are not meaningful, e.g. in various i/o statements, and I see 
absolutely no reason why GET_COMMAND_ARGUMENT should not accept an 8-bit 
integer, or for that matter any integer capable of representing the argument 
number.  It is just an annoyance for the user to have to put INT around it.

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




More information about the J3 mailing list