You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 1347 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Henri Dubois-Ferriere
Version: 3.04
OS: Linux RH7.2 2.4.7-10
Submission from: tcache-wm01.proxy.aol.com (205.188.199.212)
test.ml:
let a = Array.create 10 1.0
let _ = a.(11)
It would be very hard to make the bytecode and native code have
the same behaviour in this case, so I've added an item to the list
of differences in section 11.4 of the manual. The change will appear
in the next release of O'Caml.
Original bug ID: 1347
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Henri Dubois-Ferriere
Version: 3.04
OS: Linux RH7.2 2.4.7-10
Submission from: tcache-wm01.proxy.aol.com (205.188.199.212)
test.ml:
let a = Array.create 10 1.0
let _ = a.(11)
% ocamlopt test.ml
% ./a.out
Fatal error: exception Invalid_argument("out-of-bound array or string access")
% ocamlc test.ml
% ./a.out
Fatal error: exception Invalid_argument("Array.get")
If this can't be easily fixed then the manual section (11.4) that lists
ocamlc/ocamlopt incompatibilites should also include this.
Thanks for the great work.
henri
The text was updated successfully, but these errors were encountered: