caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Pascal Cuoq <Pascal.Cuoq@inria.fr>
To: Gerd.Stolpmann@darmstadt.netsurf.de, caml-list@inria.fr
Subject: Re: The option -rectypes
Date: Wed, 24 Nov 1999 11:37:40 +0100	[thread overview]
Message-ID: <19991124113740.07243@pauillac.inria.fr> (raw)
In-Reply-To: <99112402223302.32002@ice>; from Gerd Stolpmann on Wed, Nov 24, 1999 at 01:59:36AM +0100

> I have some code that compiled in 2.02, but in 2.03 I need the new option
> -rectypes of the compilers.
> 
> - What is the background of this change?

I can't say much about your example, but maybe I can say a few
words about the context.  I was one of the people who lobbied
to have at least a compiler option to allow recursive types.

The application in which we needed recursive types in Caml is
Lucid Synchrone, a strongly typed, higher-order synchronous language
which uses Ocaml as its target language:
http://www-spi.lip6.fr/~pouzet/lucid-synchrone/

In this kind of application, the type system of Ocaml only can get in
the way, because Lucid Synchrone already type-checks the
Lucid Synchrone programs.  It happens to be that (roughly) a well-typed
Lucid Synchrone program is compiled in an Ocaml program which 
is well-typed if recursive types are accepted, and ill-typed if they
aren't.

The Caml implementors will probably tell you that the use of this
flag is discouraged for hand-written programs.  This "feature" was
removed from Ocaml 1.05 for a good reason (the type-checker reports
errors too late) and it should not be used lightly.

This said, there must be another change in the objects systems
which explains that your program is rejected without -rectypes.

Pascal




  reply	other threads:[~1999-11-24 18:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-24  0:59 Gerd Stolpmann
1999-11-24 10:37 ` Pascal Cuoq [this message]
1999-11-24 20:56 ` Xavier Leroy
1999-11-25 10:53   ` Anton Moscal
1999-11-25 17:22     ` Stefan Monnier
1999-11-25 20:51   ` Gerd Stolpmann
1999-11-25 22:44 ` Jerome Vouillon

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=19991124113740.07243@pauillac.inria.fr \
    --to=pascal.cuoq@inria.fr \
    --cc=Gerd.Stolpmann@darmstadt.netsurf.de \
    --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;
as well as URLs for NNTP newsgroup(s).