caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Andrej Bauer <Andrej.Bauer@fmf.uni-lj.si>
To: oleg@pobox.com, caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Which control structure?
Date: Wed, 03 Oct 2007 11:30:31 +0200	[thread overview]
Message-ID: <47036137.2000009@fmf.uni-lj.si> (raw)
In-Reply-To: <20071003080053.5B954A9A1@Adric.metnet.fnmoc.navy.mil>

oleg@pobox.com wrote:
> In almost all useful circumstances call/cc appears in combination with
> store -- which is a dead give-away that we are dealing with delimited
> continuations.

I suspected that much, and hoped for a reply from you :-)

> The following code does compute (p false, p true) by
> really entering p only once (but exiting it twice).

Excellent, thank you.

> The argument to p must be a thunk, so we are able to enter p, or to get p to swallow the
> hook.

This is not a problem because in my actual non-simplified problem p is a 
functional of type (int -> bool) -> bool. Now let me see if I can apply 
delimited continuations in the non-simplified version. Thank you again!

Andrej


  reply	other threads:[~2007-10-03  9:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-03  8:00 oleg
2007-10-03  9:30 ` Andrej Bauer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-10-02 18:41 Andrej Bauer
2007-10-02 22:24 ` [Caml-list] " Andrej Bauer

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=47036137.2000009@fmf.uni-lj.si \
    --to=andrej.bauer@fmf.uni-lj.si \
    --cc=Andrej.Bauer@andrej.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=oleg@pobox.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;
as well as URLs for NNTP newsgroup(s).