Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005024OCamlOCaml generalpublic2010-04-11 16:442012-09-25 20:06
ReporterDmitry Grebeniuk 
Assigned Toxclerc 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version3.12.1 
Summary0005024: ocaml 3.12.0+dev17, svn revision 10259: revised syntax + new records underscore pattern = syntax error
DescriptionI've downloaded ocaml from svn trunk (revision 10259) and noticed that revised syntax can't handle pattern "_" when matching records:

========================================================
C:\overbld\ocaml>ocaml
        Objective Caml version 3.12.0+dev17 (2010-01-20)

# #load "dynlink.cma";;
# #load "camlp4r.cma";;
        Camlp4 Parsing version 3.12.0+dev17 (2010-01-20)

# type myrec = { a : int; b : float };
type myrec = { a : int; b : float }
# value f { a = a; _ } = a;
Characters 15-16:
  value f { a = a; _ } = a;
                 ^
Error: Parse error: "}" expected after [label_ipatt_list] (in [ipatt])
#
========================================================
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0005311)
frisch (developer)
2010-04-12 09:34

Indeed, none of the new syntactic features in the trunk have been ported to Camlp4 yet.
(0005954)
doligez (administrator)
2011-06-01 17:26

Still present in 3.12.0 and 3.12.1+dev10

- Issue History
Date Modified Username Field Change
2010-04-11 16:44 Dmitry Grebeniuk New Issue
2010-04-12 09:34 frisch Note Added: 0005311
2011-06-01 17:26 doligez Note Added: 0005954
2011-06-01 17:26 doligez Status new => confirmed
2011-09-05 13:24 xclerc Status confirmed => resolved
2011-09-05 13:24 xclerc Fixed in Version => 3.12.1
2011-09-05 13:24 xclerc Resolution open => fixed
2011-09-05 13:24 xclerc Assigned To => xclerc
2012-09-25 20:06 xleroy Status resolved => closed


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker