[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- List-directed input forms after NOTE 2]
Insert a

"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
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 Nondelimited character sequences are not
permitted in namelist input, so the second caveat in the first sentence
above is not needed in]

Assuming this would work, is it "too big" to add to the list of tiny
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