From: "Richard W.M. Jones" <rich@annexia.org>
To: caml-list@inria.fr
Subject: [Caml-list] OCaml 4.02 & {<delim>| in comments
Date: Sat, 2 Aug 2014 10:23:02 +0100 [thread overview]
Message-ID: <20140802092302.GA21347@annexia.org> (raw)
I came across a strange problem when compiling Coq. The compiler
grumbled about an unterminated string, but pointed me to a comment:
(* between u v = {w|u<=w<=v, w canonical} *)
This was a puzzle, but I added the following patch to Coq to fix it
and moved on.
----------------------------------------------------------------------
--- coq-8.4pl4.old/kernel/univ.ml 2014-04-24 16:13:03.000000000 +0100
+++ coq-8.4pl4/kernel/univ.ml 2014-08-01 11:00:10.447233148 +0100
@@ -226,7 +226,7 @@
(* between : UniverseLevel.t -> canonical_arc -> canonical_arc list *)
-(* between u v = {w|u<=w<=v, w canonical} *)
+(* between u v = { w | u<=w<=v, w canonical } *)
(* between is the most costly operation *)
let between g arcu arcv =
----------------------------------------------------------------------
Today I was reading about the new ppx extensions, and now I understand
that {<delim>| is the syntax used for quoted strings. Puzzle solved!
However my question is: Is it a bug that the compiler complains about
{<delim>| inside a comment?
Rich.
--
Richard Jones
Red Hat
next reply other threads:[~2014-08-02 9:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-02 9:23 Richard W.M. Jones [this message]
2014-08-02 9:31 ` David Allsopp
2014-08-11 8:59 ` Goswin von Brederlow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140802092302.GA21347@annexia.org \
--to=rich@annexia.org \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox