caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Tom <tom.primozic@gmail.com>
To: Andrej.Bauer@andrej.com
Cc: "Brian Hurt" <bhurt@janestcapital.com>,
	"Jonathan Bryant" <jtbryant@valdosta.edu>,
	caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Amb
Date: Fri, 9 Feb 2007 23:42:20 +0100	[thread overview]
Message-ID: <c1490a380702091442l15c29c29hc6c939cd971daeb@mail.gmail.com> (raw)
In-Reply-To: <45CCF1D6.5040302@fmf.uni-lj.si>

[-- Attachment #1: Type: text/plain, Size: 410 bytes --]

What would amb do with this kind of program:

let f_out = open_out "file1.tmp";;
output_string f_out "good\n";;
close_out;;

if (abm [(fun _ -> false); (fun _ -> true)]) then
     let f_in = open_in "file1.tmp" in
     if input_line f_in = "good" then exit 0 (* SUCCESS *)
     else raise Amb
else
      let f_out2 = open_out_get [Open_trunc] 0o777 "file1.tmp" in
      output_string f_out2 "bad\n"


?

- Tom

[-- Attachment #2: Type: text/html, Size: 643 bytes --]

  reply	other threads:[~2007-02-09 22:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-09 21:31 Amb Jonathan Bryant
2007-02-09 21:55 ` [Caml-list] Amb Brian Hurt
2007-02-09 22:12   ` Andrej Bauer
2007-02-09 22:42     ` Tom [this message]
2007-02-10  0:03       ` Jon Harrop
2007-02-10  0:01   ` Jon Harrop
2007-02-10  1:12     ` Brian Hurt

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=c1490a380702091442l15c29c29hc6c939cd971daeb@mail.gmail.com \
    --to=tom.primozic@gmail.com \
    --cc=Andrej.Bauer@andrej.com \
    --cc=bhurt@janestcapital.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=jtbryant@valdosta.edu \
    /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).