| Anonymous | Login | Signup for a new account | 2013-05-25 06:06 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||
| 0004950 | OCaml | OCaml general | public | 2009-12-31 11:13 | 2012-09-17 17:45 | ||||||
| Reporter | hennequi | ||||||||||
| Assigned To | |||||||||||
| Priority | normal | Severity | text | Reproducibility | always | ||||||
| Status | acknowledged | Resolution | open | ||||||||
| Platform | OS | OS Version | |||||||||
| Product Version | 3.10.2 | ||||||||||
| Target Version | 4.01.0+dev | Fixed in Version | |||||||||
| Summary | 0004950: Array.init raises the wrong exception for invalid argument | ||||||||||
| Description | Array.make (-1) 0;; Exception: Invalid_argument "Array.make". Array.init (-1) (fun _ -> 0);; Exception: Invalid_argument "Array.make". it would be great for debugging purposes to see an "Array.init" in the second exception. cheers, Guillaume. | ||||||||||
| Tags | No tags attached. | ||||||||||
| Attached Files | |||||||||||
Notes |
|
|
(0005222) doligez (manager) 2010-01-07 16:03 |
Not sure we want to fix this, as it would add the overhead of catching the exception. |
|
(0008098) doligez (manager) 2012-09-17 17:45 |
Another possibility would be to change the exception to (Invalid_argument "Array.make/Array.init"). |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2009-12-31 11:13 | hennequi | New Issue | |
| 2010-01-07 16:03 | doligez | Note Added: 0005222 | |
| 2010-01-07 16:03 | doligez | Status | new => acknowledged |
| 2012-09-06 16:44 | doligez | Target Version | => 4.00.1+dev |
| 2012-09-17 17:45 | doligez | Note Added: 0008098 | |
| 2012-09-17 17:45 | doligez | Target Version | 4.00.1+dev => 4.01.0+dev |
| Copyright © 2000 - 2011 MantisBT Group |