Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006043OCamlOCaml documentationpublic2013-06-20 12:502013-06-20 13:41
Reportersdailly 
Assigned Togasche 
PrioritylowSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version4.00.1 
Target VersionFixed in Version 
Summary0006043: Syntax error with documentation exemple
DescriptionThe first class module exemple give syntax error when tryin to reproduce

http://caml.inria.fr/pub/docs/manual-ocaml-4.00/manual021.html#toc81 [^]

Steps To Reproduce$ rlwrap.exe ocaml
        OCaml version 4.00.1

# module type DEVICE = sig end;;
module type DEVICE = sig end
# let devices : (string, module DEVICE) Hashtbl.t = Hashtbl.create 17;;
Characters 23-29:
  let devices : (string, module DEVICE) Hashtbl.t = Hashtbl.create 17;;
                         ^^^^^^
Error: Syntax error
Additional Informationparen are missing arount « module DEVICE » :

# let devices : (string, (module DEVICE)) Hashtbl.t = Hashtbl.create 17;;
val devices : (string, (module DEVICE)) Hashtbl.t = <abstr>
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0009586)
gasche (developer)
2013-06-20 13:41

In fact, this issue has already been fixed by Damien in commit 12957. You did nothing wrong, though, as the web version of the manual has not been updated (since the OCaml release, I suppose), so there is no way to access the up-to-date version before the upcoming OCaml release -- short of looking at the sources in the SVN.

- Issue History
Date Modified Username Field Change
2013-06-20 12:50 sdailly New Issue
2013-06-20 13:41 gasche Note Added: 0009586
2013-06-20 13:41 gasche Status new => resolved
2013-06-20 13:41 gasche Resolution open => fixed
2013-06-20 13:41 gasche Assigned To => gasche


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker