[J3] Comments in list-directed input?

Van Snyder van.snyder at sbcglobal.net
Thu Aug 4 03:53:36 UTC 2022

We allow comments in namelist input.

In list-directed input, one can put comments after the last item
desired by putting them after the slash that terminates the input.

If one is reading several arrays, say one array per line, with one
list-directed input statement, one cannot put a slash and comment on
each line because that terminates the input.

Would there be a problem to allow comments in list-directed input,
beginning with "!" as in namelist input?

Is this a tiny enough change to get added to the "really tiny stuff
tacked onto the next standard outside the big projects" list?

As is the case with the slash, if one is reading a character variable,
and not including quotes or apostrophes, you risk reading the comment.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20220803/7b07afcb/attachment.htm>

More information about the J3 mailing list