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 JAA04098; Thu, 3 Oct 2002 09:58:04 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA04244 for caml-list@pauillac.inria.fr; Thu, 3 Oct 2002 09:58:03 +0200 (MET DST) 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 QAA09854 for ; Wed, 2 Oct 2002 16:55:57 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from dsf (adsl-63-196-84-93.dsl.sndg02.pacbell.net [63.196.84.93]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g92Ett501532 for ; Wed, 2 Oct 2002 16:55:56 +0200 (MET DST) Received: from dsf by dsf with local (Exim 3.33 #1 (Debian)) id 17wkuo-0005wa-00 for ; Wed, 02 Oct 2002 07:55:54 -0700 To: caml-list@inria.fr From: david.fox@lindows.com Subject: [Caml-list] Ouch - when bytecode and native behave differently Date: 02 Oct 2002 07:55:54 -0700 Message-ID: <8765wkao05.fsf@foxthompson.net> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I just encountered a situation where the bytecode and native versions of a program behave differently. It turns out that out of bounds array accesses return a different message: Invalid_argument "Array.get" vs. Invalid_argument "out-of-bound array or string access" I was catching the former but not the latter. I don't know if I'm making a mistake by paying attention to the message or if this is a problem or issue in the standard libs, but I thought I'd point it out. Thanks, -david ------------------- 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