[J3] Program name
Malcolm Cohen
malcolm at nag-j.co.jp
Wed Sep 25 07:54:58 UTC 2024
It would not introduce very much ambiguity, or very much complexity, but then it’s not a very useful feature either.
I prefer lists of exceptions to be as small as possible.
Cheers,
--
..............Malcolm Cohen, NAG Oxford/Tokyo.
From: J3 <j3-bounces at mailman.j3-fortran.org> On Behalf Of Van Snyder via J3
Sent: Wednesday, September 25, 2024 10:32 AM
To: j3 <j3 at j3-fortran.org>
Cc: Van Snyder <van.snyder at sbcglobal.net>
Subject: [J3] Program name
The program name is a global identifier.
Subclause 19.3.1p2 says a local identifier cannot be the same as a program name.
Can the program name be used in any way whatsoever, other than on the END PROGRAM statement?
Would any existing program be compromised if the program name were added to the list of exceptions?
It's not a big problem to change a program name to be different from any local identifiers in the program unit because it can appear in at most two places, but it is an irritation to write a simple program with a name like TRIM and then have to change it because the program references that intrinsic function.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20240925/88cbf3c7/attachment.htm>
More information about the J3
mailing list