From: Florian Weimer <fw@deneb.enyo.de>
To: Alain Frisch <Alain.Frisch@inria.fr>
Cc: Jon Harrop <jon@ffconsultancy.com>, caml-list@yquem.inria.fr
Subject: Re: [Caml-list] try .. finally ..
Date: Mon, 21 May 2007 09:49:04 +0200 [thread overview]
Message-ID: <87wsz2aa6n.fsf@mid.deneb.enyo.de> (raw)
In-Reply-To: <4650A1EA.3050302@inria.fr> (Alain Frisch's message of "Sun, 20 May 2007 21:30:50 +0200")
* Alain Frisch:
> Why not:
>
> let unwind_protect f g =
> match (try f (); None with exn -> Some exn) with
> | None -> g ()
> | Some exn -> g (); raise exn
>
> ?
unwind_protect traditionally returns the value of f (), not that of
g (). I think it is fundamentally non-tail-call.
prev parent reply other threads:[~2007-05-21 7:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-20 17:42 Jon Harrop
2007-05-20 19:30 ` [Caml-list] " Alain Frisch
2007-05-21 7:49 ` Florian Weimer [this message]
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=87wsz2aa6n.fsf@mid.deneb.enyo.de \
--to=fw@deneb.enyo.de \
--cc=Alain.Frisch@inria.fr \
--cc=caml-list@yquem.inria.fr \
--cc=jon@ffconsultancy.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