caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Ouch - when bytecode and native behave differently
@ 2002-10-02 14:55 david.fox
  2002-10-03  8:11 ` Henri Dubois-Ferriere
  0 siblings, 1 reply; 2+ messages in thread
From: david.fox @ 2002-10-02 14:55 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-03  8:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-02 14:55 [Caml-list] Ouch - when bytecode and native behave differently david.fox
2002-10-03  8:11 ` Henri Dubois-Ferriere

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).