| Anonymous | Login | Signup for a new account | 2013-05-26 01:38 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 | |||
| 0004884 | OCaml | OCaml general | public | 2009-10-02 15:20 | 2010-04-30 05:08 | |||
| Reporter | laurent | |||||||
| Assigned To | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | |||
| Status | closed | Resolution | fixed | |||||
| Platform | OS | OS Version | ||||||
| Product Version | 3.11.1 | |||||||
| Target Version | Fixed in Version | 3.12.0+dev | ||||||
| Summary | 0004884: optional argument does not work when Some is redefined | |||||||
| Description | The following code fails: module M = struct type t = Some of int let f ?(v2=0) v1 = v1 + v2 end The problem is probably that optional arguments are soon translated in some other code that uses the Some constructor without specifying the module (Pervasives.Some). I agree that defining a new Some constructor is probably a bad practice but if OCaml relies on Some not being redefined, then redefining Some should produce an error. | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Relationships |
|||||||||||
|
|||||||||||
Notes |
|
|
(0005417) garrigue (manager) 2010-04-30 05:08 |
Fixed for 3.12, in revision 10329. (Same technique as revision 8888) |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2009-10-02 15:20 | laurent | New Issue | |
| 2009-12-10 13:21 | xclerc | Relationship added | related to 0004937 |
| 2010-04-30 05:08 | garrigue | Note Added: 0005417 | |
| 2010-04-30 05:08 | garrigue | Status | new => closed |
| 2010-04-30 05:08 | garrigue | Resolution | open => fixed |
| 2010-04-30 05:08 | garrigue | Fixed in Version | => 3.12.0+dev |
| 2010-06-16 03:25 | garrigue | Relationship added | has duplicate 0005075 |
| Copyright © 2000 - 2011 MantisBT Group |