Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005565OCamlOCaml documentationpublic2012-03-28 12:072013-08-19 14:41
Reportergasche 
Assigned To 
PrioritynormalSeveritytextReproducibilityN/A
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version 
Target Version4.01.0+devFixed in Version4.01.0+dev 
Summary0005565: Typing errors in the examples of the "Format mini-guide" on the website
DescriptionEugen Zalinescu reported on the beginner's list that the "Format mini-guide" contains stale code using (Format.printf "%a") that does not type anymore.

format guide: http://caml.inria.fr/resources/doc/guides/format.en.html [^]

list discussion: http://tech.groups.yahoo.com/group/ocaml_beginners/message/13423 [^]

The problem is that `Format.printf "%a"` takes a formatter-parametrized (formatter -> 'a -> unit) argument, rather than simply ('a -> unit) as this mini-guide assumes.

I believe the easiest fix would be to remove this "using printf" section entirely, as the following "using fprintf" section provides the same information.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0010193)
doligez (administrator)
2013-08-19 14:40

Fixed as suggested.

- Issue History
Date Modified Username Field Change
2012-03-28 12:07 gasche New Issue
2012-03-28 12:07 gasche Status new => acknowledged
2012-03-28 16:49 jimenezrick Note Added: 0007215
2012-03-29 18:15 jimenezrick Note Deleted: 0007215
2012-09-06 16:44 doligez Target Version => 4.00.1+dev
2012-09-21 14:10 doligez Target Version 4.00.1+dev => 4.00.2+dev
2013-07-11 16:21 doligez Target Version 4.00.2+dev => 4.01.0+dev
2013-08-19 14:40 doligez Note Added: 0010193
2013-08-19 14:40 doligez Fixed in Version => 4.01.0+dev
2013-08-19 14:41 doligez Status acknowledged => resolved
2013-08-19 14:41 doligez Resolution open => fixed


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker