Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006024OCamlOCaml standard librarypublic2013-05-29 11:352013-05-29 17:56
ReporterBoris Yakobowski 
Assigned To 
PriorityhighSeverityblockReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version4.00.1 
Target VersionFixed in Version4.01.0+dev 
Summary0006024: Syntax for printing @ using Format is completely incompatible between OCaml 3.12.1 and OCaml 4.00.1+dev
Description        Objective Caml version 3.12.1

# Format.printf "@@";;
@- : unit = ()
# Format.printf "%@";;
Error: Bad conversion %@, at char number 0 in format string ``%@''
 

        OCaml version 4.00.0

# Format.printf "@@";;
@- : unit = ()
# Format.printf "%@";;
@- : unit = ()
#

        OCaml version 4.01.0+dev15-2013-05-28

# Format.printf "%@";;
@- : unit = ()
# Format.printf "@@";;
Exception:
Invalid_argument
 "Format.fprintf: bad format ``@@'', giving up at character number 1 (@).".

Furthermore, the logic beyond %@ is dubious at best, as % is used to escape special Printf characters, which is not the case for @.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0009370)
Boris Yakobowski (reporter)
2013-05-29 13:19

The behavior in the trunk was probably implemented when 0005973 was fixed.
(0009371)
doligez (administrator)
2013-05-29 17:56

Fixed in trunk (rev 13713).

- Issue History
Date Modified Username Field Change
2013-05-29 11:35 Boris Yakobowski New Issue
2013-05-29 13:19 Boris Yakobowski Note Added: 0009370
2013-05-29 17:56 doligez Note Added: 0009371
2013-05-29 17:56 doligez Status new => closed
2013-05-29 17:56 doligez Resolution open => fixed
2013-05-29 17:56 doligez Fixed in Version => 4.01.0+dev


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker