From: Xavier Leroy <xavier.leroy@inria.fr>
To: Pixel <pixel@mandrakesoft.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] exception messages pbs
Date: Wed, 24 Oct 2001 16:37:05 +0200 [thread overview]
Message-ID: <20011024163705.B20823@pauillac.inria.fr> (raw)
In-Reply-To: <ly3d4jwya8.fsf@leia.mandrakesoft.com>; from pixel@mandrakesoft.com on Tue, Oct 16, 2001 at 02:43:27PM +0200
> - long Failure exceptions get truncated, eg:
Right. The string representation of the exception is computed in a
fixed-size buffer. You can easily change the size of this buffer
(declaration of "struct stringbuf" in byterun/printexc.c). Ideally,
the buffer would grow as needed...
> - when an exception occurs, the file descriptors are not flushed. To
> have them flushed, I use :
>
> try ... with e -> flush stdout ; raise e
>
> which works nicely, except that back-in-time debugging is harder (you have to
> go back the various catching code). Any better solution?
That's a known open issue. The C code that traps and display the
exception could call back into Caml to perform the flushing (and more
generally all "at_exit" processing), but some care must be taken if
some of this processing raises an exception itself :-)
- Xavier Leroy
-------------------
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:[~2001-10-24 14:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-16 12:43 Pixel
2001-10-24 14:37 ` Xavier Leroy [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=20011024163705.B20823@pauillac.inria.fr \
--to=xavier.leroy@inria.fr \
--cc=caml-list@inria.fr \
--cc=pixel@mandrakesoft.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