Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005788OCamlOCaml generalpublic2012-10-12 21:442013-01-03 16:39
Reporterlpw25 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusconfirmedResolutionopen 
PlatformOSOS Version
Product Version4.00.0 
Target Version4.00.2+devFixed in Version 
Summary0005788: Exception rebinding breaks pattern matching
DescriptionIt seems that pattern matching does not allow for the possibility of exceptions being rebound.

This can be demonstrated with the following code:

  # exception Foo;;
  exception Foo
  # exception Bar = Foo;;
  exception Bar
  # let test e b =
      match e, b with
        Foo, true -> 1
      | Bar, false -> 2
      | _, _ -> 3;;
          val test : exn -> bool -> int = <fun>
  # test Bar false;;
  - : int = 3
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2012-10-12 21:44 lpw25 New Issue
2013-01-03 16:39 doligez Status new => confirmed
2013-01-03 16:39 doligez Target Version => 4.00.2+dev
2013-01-03 16:39 doligez Description Updated View Revisions


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker