From: IKEDA Katsumi <ikeda@msi.co.jp>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Sys_error("Bad file descriptor")
Date: Tue, 12 Nov 2002 17:49:55 +0900 [thread overview]
Message-ID: <20021112174955Y.ikeda@msi.co.jp> (raw)
In-Reply-To: <20021111113157D.ikeda@msi.co.jp>
Hi,
From: IKEDA Katsumi <ikeda@msi.co.jp>
Message-ID: <20021111113157D.ikeda@msi.co.jp>
> ---------------- pslog.ml ----------------
> (* pslog.ml *)
> class log =
> object
> val mutable out = stderr
> method log_open name =
> out <- open_out_gen [Open_append;Open_creat] 0o666 name;
> method log_close = close_out out
> method write mes =
> output_string out mes; flush out;
> end
> ---------------- pslog.ml ----------------
Sorry, I have a big mistake.
I try the following.
method log_open name =
out <- open_out_gen [Open_append;Open_creat;Open_wronly] 0o666 name;
Now, it works.
Thanks.
--
IKEDA Katsumi <ikeda@msi.co.jp>
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2002-11-12 8:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-11 2:31 IKEDA Katsumi
2002-11-12 8:49 ` IKEDA Katsumi [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-04-09 9:08 [Caml-list] Sys_error "Bad file descriptor" wester
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=20021112174955Y.ikeda@msi.co.jp \
--to=ikeda@msi.co.jp \
--cc=caml-list@inria.fr \
/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