[J3] Comments in list-directed input

Van Snyder van.snyder at sbcglobal.net
Fri Aug 5 00:35:49 UTC 2022


I don't think it's difficult to specify how comments can be included in
list-directed input without causing incompatibility.

Here's what I have in mind, freely plagiarizing namelist input:

[22-007r1:291:36- 13.10.3.1p9++ List-directed input forms after NOTE 2]
Insert a
paragraph:

"When not within a character sequence, and when the next effective item
is not of type character, a "!" character after a value separator or
in the first nonblank position of the input record initiates a comment.
The comment extends to the end of the record and may contain any
graphic
character in the processor-dependent character set. The comment is
ignored. A slash within a comment does not terminate execution of the
list-directed input statement. A comment is not allowed in stream input
because comments depend upon record structure."

[Compare to 13.11.3.6p1. Nondelimited character sequences are not
permitted in namelist input, so the second caveat in the first sentence
above is not needed in 13.11.3.6p1.]

Assuming this would work, is it "too big" to add to the list of tiny
things
appended to the coat tails of the next revision?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20220804/95876fc1/attachment.htm>


More information about the J3 mailing list