From: Goswin von Brederlow <goswin-v-b@web.de>
To: Ben Millwood <bmillwood@janestreet.com>
Cc: "Frédéric Bour" <frederic.bour@lakaban.net>,
"Markus Mottl" <markus.mottl@gmail.com>,
"Gabriel Scherer" <gabriel.scherer@gmail.com>,
"Philippe Veber" <philippe.veber@gmail.com>,
"caml users" <caml-list@inria.fr>
Subject: Re: [Caml-list] Not letting channels escape.
Date: Mon, 11 Aug 2014 17:26:45 +0200 [thread overview]
Message-ID: <20140811152645.GE12872@frosties> (raw)
In-Reply-To: <CA+MHO50nwFOPN0jm66Km=5Dk-r0AOoCzdeE0kBgvnwxeW0xczw@mail.gmail.com>
Hi,
as a side node: There is not just the danger of an escaped channel giving runtime errors. Think what happens when you
let fd1 = Unix.open_file file1 in
let () = Unix.close fd in
let fd2 = Unix.open_file file2 in
Unix.write fd1
Suddenly you write to the wrong file.
MfG
Goswin
prev parent reply other threads:[~2014-08-11 15:26 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-08 10:23 Philippe Veber
2014-08-08 11:22 ` Peter Zotov
2014-08-08 11:30 ` Ben Millwood
2014-08-08 14:49 ` Ben Millwood
2014-08-08 15:44 ` Markus Mottl
2014-08-08 16:01 ` Ben Millwood
2014-08-08 17:21 ` Markus Mottl
2014-08-08 17:37 ` Gabriel Scherer
2014-08-08 18:23 ` Markus Mottl
2014-08-08 18:28 ` Frédéric Bour
2014-08-08 19:30 ` Markus Mottl
2014-08-08 19:45 ` Frédéric Bour
2014-08-08 20:34 ` Markus Mottl
2014-08-10 18:06 ` Philippe Veber
2014-08-11 9:07 ` Ben Millwood
2014-08-11 15:26 ` Goswin von Brederlow [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=20140811152645.GE12872@frosties \
--to=goswin-v-b@web.de \
--cc=bmillwood@janestreet.com \
--cc=caml-list@inria.fr \
--cc=frederic.bour@lakaban.net \
--cc=gabriel.scherer@gmail.com \
--cc=markus.mottl@gmail.com \
--cc=philippe.veber@gmail.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