(j3.2006) (SC22WG5.5437) Proposal of a new requirement : CMDMSG optional argument in 3 subroutines

Bernard PICHON Bernard.Pichon
Tue Jan 27 07:58:25 EST 2015


Dear all members of WG5

In the past I suggested to introduce in Fortran
some means to retrieve ?error message? from the
processor. This feature is now standardized with
keywords IOMSG= for I/O routines, keyword ERRMSG=
for memory and image control routines and the
optional argument CMDMSG is defined in
EXECUTE_COMMAND_LINE subroutine.

I encounter these days some difficulties with the
subroutine GET_ENVIRONMENT_VARIABLE and discovered
that this subroutine doesn?t implement any means
to retrieve ?error message? from the host
processor although the optional argument STATUS is
defined.

So, I put to WG5 the following requirement written
by analogy with EXECUTE_COMMAND_LINE subroutine :

Note that you may receive this mail twice due to a
change in my mail address ; sorry for that !!

==================================================
===================================

Add the optional argument CMDMSG in subroutines
GET_COMMAND , GET_COMMAND_ARGUMENT and
GET_ENVIRONMENT_VARIABLE with this edit :

CMDMSG (optional) shall be a default character
scalar. It is an INTENT (INOUT) argument. If an
error condition occurs, it is assigned a
processor-dependent explanatory message.
Otherwise, it is unchanged. 

==================================================
====================================

Dr. Bernard PICHON (from France) 
CNRS ? Observatoire de la C?te d?Azur (OCA)





More information about the J3 mailing list