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 PAA09011; Mon, 19 Aug 2002 15:54:35 +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 PAA08625 for ; Mon, 19 Aug 2002 15:54:34 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g7JDsST12390; Mon, 19 Aug 2002 15:54:28 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA08869; Mon, 19 Aug 2002 15:54:27 +0200 (MET DST) Date: Mon, 19 Aug 2002 15:54:27 +0200 From: Xavier Leroy To: Oliver Bandel Cc: caml-list@inria.fr Subject: Re: [Caml-list] Silently discarded exceptions? Message-ID: <20020819155427.C6276@pauillac.inria.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from oliver@first.in-berlin.de on Sun, Aug 18, 2002 at 04:52:30PM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > I have a test on the first char of a string (Position 0). > If the string is "" then normally (in the toplevel) an > exception is thrown. > > When compiling with ocamlc, the program does not > mention that there was an Exception: it silently > stops the execution of my test. Chances are that your program contains a "try ... with x -> ..." or "try ... with _ -> ..." that catches the exception arising from the invalid string access. - Xavier Leroy ------------------- 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