From: "\"António Monteiro (anmonteiro)\"" <anmonteiro@gmail.com>
To: Michel Levy <michel.levy1948@gmail.com>
Cc: OCaml List <caml-list@inria.fr>
Subject: Re: [Caml-list] error in Ocaml 4.02 and not error in Ocaml 4.05
Date: Mon, 24 Jun 2019 14:14:08 -0700 [thread overview]
Message-ID: <D32D9596-A8F0-4641-8F03-ADC2EE4803B8@gmail.com> (raw)
In-Reply-To: <8262157f-ffe5-b12e-f09a-dd01ef083c73@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 977 bytes --]
Michael,
Inline records were introduced in OCaml 4.03. Here’s a perma link for the changes entry in the compiler repo: https://github.com/ocaml/ocaml/blob/d8b6a1713b50132fc96b6cda40c8aad4ec4f8008/Changes#L3798-L3799 <https://github.com/ocaml/ocaml/blob/d8b6a1713b50132fc96b6cda40c8aad4ec4f8008/Changes#L3798-L3799>
- Antonio
> On Jun 24, 2019, at 2:09 PM, Michel Levy <michel.levy1948@gmail.com> 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 ?
>
> --
> courriel : michel.levy1948@gmail.com
> mobile : 0659134253 web : http://michel.levy.imag.free.fr
[-- Attachment #2: Type: text/html, Size: 1816 bytes --]
next prev parent reply other threads:[~2019-06-24 21:14 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)" [this message]
2019-06-25 5:17 ` Basile Starynkevitch
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=D32D9596-A8F0-4641-8F03-ADC2EE4803B8@gmail.com \
--to=anmonteiro@gmail.com \
--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