caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Yann Régis-Gianas" <yann@lrde.epita.fr>
To: caml-list@inria.fr
Subject: Fwd: Re: [Caml-list] mutually referencing compilation units
Date: Thu, 19 Sep 2002 09:58:28 +0200	[thread overview]
Message-ID: <200209190958.28366.yann@lrde.epita.fr> (raw)

Le Jeudi 19 Septembre 2002 05:09, John Max Skaller a écrit :
> Xavier Leroy wrote:
> > > Is the fact that two mutually referencing units can't be compiled
> > > supposed to be a Good Thing?
> >
> > [..]
> > However, there are deep semantical and
> > type-theoretical reasons that make it hard to allow cross-module
> > recursion in ML.  This is actually a research area that is still
> > largely open.
>
> [...]
> The constraint only applies to open directives
> and is related to name lookup, not typing.

	Linking of values are now well formalized in calculus like m-calculus (Wells
and Vestegaard) or CMS (Ancona and Zucca). The principal idea is to define
link between components and variables apart from their definition. Units of
Flatt or Felleisen are also a good example of implementation of this idea.

	However, "deferred types" (which allows a way to obtain mutually recursive
types across modules) are not managed in these formalisms The main problem
with ML family's languages may be that they need a context to type terms and
that incomplete contexts leads to the impossibility of typing modules ... I
am not yet a specialist of the field but you can read the following articles
to understand the general problem of mutually recursive modules (aka mixins).

J. B. Wells and Rene Vestergaard.
Equational reasoning for linking with first-class primitive modules.
2000

Tom Hirschowitz and Xavier Leroy
Mixin Modules in a Call-by-Value Setting
2001

D. Ancona and E. Zucca
A calculus of module systems
2001

Karl Crary and Robert Harper and Sidd Puri
What is a Recursive Module?
1999

- --
Yann Regis-Gianas

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


                 reply	other threads:[~2002-09-19  7:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200209190958.28366.yann@lrde.epita.fr \
    --to=yann@lrde.epita.fr \
    --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).