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 QAA19420; Sun, 18 Aug 2002 16:55:06 +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 QAA19714 for ; Sun, 18 Aug 2002 16:55:05 +0200 (MET DST) Received: from hirsch.in-berlin.de (hirsch.in-berlin.de [192.109.42.6]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g7IEt2r13697 for ; Sun, 18 Aug 2002 16:55:02 +0200 (MET DST) Received: from hirsch.in-berlin.de (localhost [127.0.0.1]) by hirsch.in-berlin.de (8.12.1/8.12.1/Debian -2) with ESMTP id g7IEt1iA011189 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Sun, 18 Aug 2002 16:55:01 +0200 Received: (from uucp@localhost) by hirsch.in-berlin.de (8.12.1/8.12.1/Debian -2) with UUCP id g7IEt1lH011176 for caml-list@inria.fr; Sun, 18 Aug 2002 16:55:01 +0200 X-Envelope-From: oliver@first.in-berlin.de X-Envelope-To: caml-list@inria.fr Received: from localhost (oliver@localhost) by first.in-berlin.de (8.7.6/8.7.3) with SMTP id QAA02313 for ; Sun, 18 Aug 2002 16:52:30 +0200 Date: Sun, 18 Aug 2002 16:52:30 +0200 (MET DST) From: Oliver Bandel To: caml-list@inria.fr Subject: [Caml-list] Silently discarded exceptions? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, under Ocaml 3.04 following problem occurs: 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. When adding a test on String.length and only testing the first char of the string, if the String.length is > 0, then the program continues with the expected behaviour. What is the problem here? Are some exceptions, mentioned on the toplevel, not an issue, when using ocamlc? Or ist this a bug? Ciao, Oliver P.S.: The exception, which the toplevel throws is: Exception: Invalid_argument "String.get" ------------------- 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