Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Francis Dupont <Francis.Dupont@inria.fr>
To: Tarizzo Martial <tarizzo@worldnet.fr>
Cc: caml-list@pauillac.inria.fr
Subject: Re: Recursion, exception and continuations
Date: Mon, 11 Mar 1996 12:45:23 +0100	[thread overview]
Message-ID: <199603111145.MAA27609@givry.inria.fr> (raw)
In-Reply-To: Your message of Sat, 09 Mar 1996 17:02:16 +0100. <199603091602.RAA19039@storm.certix.fr>


 In your previous mail you wrote:

   [3] I appreciate the type system of CAML, but is a such system compatible
   with access to continuations, as it is possible to do in Scheme ?
   
=> I disagree Pierre Weis, the answer is yes and no because
of the toplevel. Here is a short summary of the problem:
a continuation is the functional abstraction of a context,
ie for the context C[ ] the associated continuation is fun x -> C[x].
 Obviously two types are involved in a context, the hole type and
the embracing type but there is usually only one type in a continuation
(the type of the hole/argument).
 It doesn't matter if the continuation is used in a program or in
*one* toplevel statement, but there is a problem if a toplevel statement
produces a continuation used in an other toplevel statement: the type
system can be broken or the extend of the continuation must be
constrained... See SML of New Jersey for correction attempts!

Regards

Francis.Dupont@inria.fr

PS: some continuation constructs have been proposed with different
scope, extend and typing rules and without the toplevel problem,
but there are not the Scheme callcc operator. Some of them can be
expansed in a CPS program of rather the same size (read papers
by Olivier Danvy & all).




  parent reply	other threads:[~1996-03-11 13:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-03-09 16:02 Tarizzo Martial
1996-03-11 11:07 ` Pierre Weis
1996-03-11 11:45 ` Francis Dupont [this message]
1996-03-11 13:42   ` Didier Remy

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=199603111145.MAA27609@givry.inria.fr \
    --to=francis.dupont@inria.fr \
    --cc=caml-list@pauillac.inria.fr \
    --cc=tarizzo@worldnet.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