Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Ouch - when bytecode and native behave differently
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
Subject: [Caml-list] Ouch - when bytecode and native behave differently
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"


  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.

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: