From: Basile Starynkevitch <basile@starynkevitch.net>
To: Michel Levy <michel.levy1948@gmail.com>, OCaml List <caml-list@inria.fr>
Subject: Re: [Caml-list] error in Ocaml 4.02 and not error in Ocaml 4.05
Date: Tue, 25 Jun 2019 07:17:19 +0200 [thread overview]
Message-ID: <baeff724-82ef-4b76-2b2e-d91b91e5e3a0@starynkevitch.net> (raw)
In-Reply-To: <8262157f-ffe5-b12e-f09a-dd01ef083c73@gmail.com>
On 6/24/19 11:09 PM, Michel Levy wrote:
> In "my" ocaml version, 4.05, the line A of {lit : literal; mutable scope
> : int} of the type declaration
>
> type ab_literal =
> | A of {lit : literal; mutable scope : int}
> | B of literal;;
>
> is correct.
>
> but in the ocaml version 4.02, the line A of {lit : literal; mutable
> scope : int} is a syntax error.
>
> Where can I find this error in the documentation and/or the
> announcement of this syntax change ?
In the chapter 8. language extensions of the Ocaml reference manual:
http://caml.inria.fr/pub/docs/manual-ocaml/extn.html
--
Basile STARYNKEVITCH == http://starynkevitch.net/Basile
opinions are mine only - les opinions sont seulement miennes
Bourg La Reine, France
prev parent reply other threads:[~2019-06-25 5:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-24 21:09 Michel Levy
2019-06-24 21:14 ` "António Monteiro (anmonteiro)"
2019-06-25 5:17 ` Basile Starynkevitch [this message]
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=baeff724-82ef-4b76-2b2e-d91b91e5e3a0@starynkevitch.net \
--to=basile@starynkevitch.net \
--cc=caml-list@inria.fr \
--cc=michel.levy1948@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).