From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA13545; Wed, 2 Oct 2002 18:19:22 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA13495 for ; Wed, 2 Oct 2002 18:19:21 +0200 (MET DST) Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g92GJJ506270; Wed, 2 Oct 2002 18:19:20 +0200 (MET DST) Received: from user-0ccegbj.cable.mindspring.com ([24.199.65.115] helo=cs.cornell.edu) by albatross.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 17wmDW-0003Qm-00; Wed, 02 Oct 2002 09:19:19 -0700 Message-ID: <3D9B1C86.3050406@cs.cornell.edu> Date: Wed, 02 Oct 2002 12:19:18 -0400 From: "Yaron M. Minsky" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020918 X-Accept-Language: en-us, en MIME-Version: 1.0 To: tom.hirschowitz@inria.fr, Ocaml List Subject: Re: [Caml-list] Uncaught exceptions (or am I going crazy?) References: <3D9B03DF.5040806@cs.cornell.edu> <3D9B0978.E4A5D96@beaune.inria.fr> <3D9B1306.6050208@cs.cornell.edu> <3D9B18FA.80809@baretta.com> <3D9B1767.8030902@cs.cornell.edu> <15771.6363.899204.33252@paille.inria.fr> <3D9B198D.7020605@cs.cornell.edu> <15771.6812.266404.848081@paille.inria.fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk That's it! Thanks. y Tom Hirschowitz wrote: >>>From module Printexc (stdlib): > > let print fct arg = > try > fct arg > with x -> > eprintf "Uncaught exception: %s\n" (to_string x); > flush stderr; > raise x > > let catch fct arg = > try > fct arg > with x -> > flush stdout; > eprintf "Uncaught exception: %s\n" (to_string x); > exit 2 > > So maybe one of your libs uses this. > > Yaron M. Minsky writes: > > I'm not sure what you mean. I catch and handle lots of exceptions in my > > code. But nowhere do I have the text "Uncaught exception". I can't > > figure out where that text is coming from. > > > > y > > > > Tom Hirschowitz wrote: > > > Probably you could as well look for code catching > > > any exception, not especially Sys_errors, right? > > > > > > > code. It doesn't seem like any of those should be catching Sys_errors. > > > > > > > > ------------------- 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