Mixing comment styles and strings jtobey@xxxxxx (21 Jul 2002 02:12 UTC)
Re: Mixing comment styles and strings Martin Gasbichler (05 Aug 2002 08:33 UTC)

Mixing comment styles and strings jtobey@xxxxxx 21 Jul 2002 02:12 UTC

Is this supposed to be a comment or only the beginning of one?

    #| ; |#

The lexical production rules say this "|#" is ignored as part of a
nested single-line comment, but the implementation regards it as the
end of a multi-line comment.

What about this?

    #|
     "This string |# is unbalanced."
    |#

My intuition tells me the quoted "|#" does not terminate the comment,
but the SRFI and implementation say that it does.  Should it be
possible to comment out strings and single-line comments that contain
the comment delimiters?

-John