| Anonymous | Login | Signup for a new account | 2013-06-19 16:50 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||
| 0005803 | OCaml | OCaml standard library | public | 2012-10-28 16:02 | 2013-01-03 16:45 | ||||||
| Reporter | hongboz | ||||||||||
| Assigned To | |||||||||||
| Priority | normal | Severity | minor | Reproducibility | have not tried | ||||||
| Status | confirmed | Resolution | open | ||||||||
| Platform | OS | OS Version | |||||||||
| Product Version | |||||||||||
| Target Version | 4.00.2+dev | Fixed in Version | |||||||||
| Summary | 0005803: Format.fprintf does not support string substitution | ||||||||||
| Description | let print_money currency_fmt sum = Printf.printf "ammount due: %(%i%)" currency_fmt sum;; let print_dollar sum = print_money "$ %i" sum ;; print_dollar 32;; let print_money currency_fmt sum = Format.fprintf Format.std_formatter "ammount due: %(%i%)" currency_fmt sum;; let print_dollar sum = print_money "$ %i" sum ;; print_dollar 32; the two print_dollars behave differently.. | ||||||||||
| Tags | No tags attached. | ||||||||||
| Attached Files | |||||||||||
Notes |
|
|
(0008684) doligez (manager) 2013-01-03 16:45 |
The second version prints "ammount due: ", then returns a wrong value (probably a closure) under the [unit] type. This is a bug in Format. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2012-10-28 16:02 | hongboz | New Issue | |
| 2013-01-03 16:45 | doligez | Note Added: 0008684 | |
| 2013-01-03 16:45 | doligez | Status | new => confirmed |
| 2013-01-03 16:45 | doligez | Target Version | => 4.00.2+dev |
| Copyright © 2000 - 2011 MantisBT Group |