From: Charles Martin <joelisp@yahoo.com>
To: Doug Bagley <doug@bagley.org>
Cc: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] beginner question about camlp4
Date: Wed, 23 Jan 2002 13:48:15 -0800 [thread overview]
Message-ID: <5.1.0.14.0.20020123134005.022fce30@pop.mail.yahoo.com> (raw)
In-Reply-To: <15439.5751.37201.475994@ns.bagley.org>
>Are you sure that's right? I think (f chan) executes before the call
>to protect, and you want protect to execute f:
That's my punishment for not cutting and pasting actual code :)
let with_input_file fname f =
let chan = open_in fname in
protect (fun () -> f chan) (fun () -> close_in chan)
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
prev parent reply other threads:[~2002-01-23 21:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-23 2:45 Doug Bagley
2002-01-23 10:15 ` Daniel de Rauglaudre
2002-01-23 19:43 ` Charles Martin
2002-01-23 20:00 ` Doug Bagley
2002-01-23 21:48 ` Charles Martin [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=5.1.0.14.0.20020123134005.022fce30@pop.mail.yahoo.com \
--to=joelisp@yahoo.com \
--cc=caml-list@inria.fr \
--cc=doug@bagley.org \
/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