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 KAA05196; Thu, 3 Oct 2002 10:11:08 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA05175 for ; Thu, 3 Oct 2002 10:11:07 +0200 (MET DST) Received: from lcavpc19.epfl.ch (lcavpc19.epfl.ch [128.178.8.56]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g938B6D18063 for ; Thu, 3 Oct 2002 10:11:06 +0200 (MET DST) Received: from localhost (henridf@localhost) by lcavpc19.epfl.ch (8.11.6/8.11.6) with ESMTP id g938B5E21713; Thu, 3 Oct 2002 10:11:05 +0200 X-Authentication-Warning: lcavpc19.epfl.ch: henridf owned process doing -bs Date: Thu, 3 Oct 2002 10:11:05 +0200 (CEST) From: Henri Dubois-Ferriere X-X-Sender: Reply-To: Henri DF To: cc: Subject: Re: [Caml-list] Ouch - when bytecode and native behave differently In-Reply-To: <8765wkao05.fsf@foxthompson.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk This is filed as bug 1347 in the ocaml 'bugzilla' Another similar bug is that in bytecode, a divide-by-zero is reported as "Fatal error: exception Division_by_zero", whereas in native you get "Floating point exception". Henri > 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 > ------------------- 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