From: Richard Jones <rich@annexia.org>
To: Jacques Le Normand <rathereasy@gmail.com>
Cc: caml-list caml-list <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] ocamlc freezes
Date: Mon, 12 May 2008 09:37:45 +0100 [thread overview]
Message-ID: <20080512083745.GA23048@annexia.org> (raw)
In-Reply-To: <f74178430805111819k7b8d1708tb33609bb189469c2@mail.gmail.com>
On Sun, May 11, 2008 at 09:19:26PM -0400, Jacques Le Normand wrote:
> hello caml-list
> when I try to compile
>
> class type node =
> object
> method get_right_sibling : node option
> end
> class type ['top_parent_type,'left_sibling_type,'right_sibling_type] typ =
> object
> inherit node
> method get_left_sibling : 'left_sibling_type option
> method get_right_sibling : 'right_sibling_type option
> end
> type 'p foo_typ = ('p,'p foo_typ,'p foo_typ) typ
>
> with
>
> ocamlc test.ml
>
> ocamlc just freezes; I'm using ocaml 3.09.2 on ubuntu. What should I do?
Possibly upgrade. With 3.10.0 this gives an error:
File "test.ml", line 11, characters 4-48:
This type constructor expands to type
'a foo_typ =
< get_left_sibling : 'a foo_typ option; get_right_sibling : node option >
but is here used with type node = < get_right_sibling : node option >
Type node = < get_right_sibling : node option > is not compatible with type
< get_right_sibling : node option >
Type
'a foo_typ =
< get_left_sibling : 'a foo_typ option; get_right_sibling : node option >
is not compatible with type
< get_left_sibling : 'a foo_typ option; get_right_sibling : node option >
Types for method get_left_sibling are incompatible
Rich.
--
Richard Jones
Red Hat
next prev parent reply other threads:[~2008-05-12 8:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-12 1:19 Jacques Le Normand
2008-05-12 8:37 ` Richard Jones [this message]
2008-05-12 13:37 ` [Caml-list] " Jacques Garrigue
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=20080512083745.GA23048@annexia.org \
--to=rich@annexia.org \
--cc=caml-list@yquem.inria.fr \
--cc=rathereasy@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