|Anonymous | Login | Signup for a new account||2017-09-20 22:15 CEST|
|Main | My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001438||OCaml||~DO NOT USE (was: OCaml general)||public||2002-10-14 18:32||2013-08-31 12:46|
|Target Version||Fixed in Version|
|Summary||0001438: minor feature request: printf and binary digits|
|Description||Scanf supports reading binary via %i, but Printf does not support|
printing binary (%b is taken by boolean, which is symmetric with
scanf). Perhaps %B?
|Tags||No tags attached.|
> Scanf supports reading binary via %i, but Printf does not support
> printing binary (%b is taken by boolean, which is symmetric with
> scanf). Perhaps %B?
You will be glad to know that the working sources for Scanf and Printf
treat %b as binary notation for integers and %B as a boolean Caml token
(symetrically to %C and %S).
An experimental binary printing implementation is also included in
Printf. It has to be reworked and generalized (or drastically
simplified) but is functionning.
INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis/ [^]
Implemented by PW 2002-10-15
removed by DD 2003-07-01 because of incompatibility problems (PR#1675)
There doesn't seem to be much demand for this feature. If someone can come up with a compelling argument, a good choice of letter (given that B and b are already taken), and a patch, we might include it.
|2005-11-18 10:13||administrator||New Issue|
|2012-01-25 16:03||doligez||Relationship added||related to 0001675|
|2012-01-25 16:07||doligez||Note Added: 0006800|
|2012-01-25 16:07||doligez||Status||acknowledged => resolved|
|2012-01-25 16:07||doligez||Resolution||open => suspended|
|2012-01-25 16:07||doligez||Description Updated||View Revisions|
|2013-08-31 12:46||xleroy||Status||resolved => closed|
|2017-02-23 16:36||doligez||Category||OCaml general => -OCaml general|
|2017-03-03 17:55||doligez||Category||-OCaml general => -(deprecated) general|
|2017-03-03 18:01||doligez||Category||-(deprecated) general => ~deprecated (was: OCaml general)|
|2017-03-06 17:04||doligez||Category||~deprecated (was: OCaml general) => ~DO NOT USE (was: OCaml general)|
|Copyright © 2000 - 2011 MantisBT Group|