You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 1438 Reporter: administrator Status: closed (set by @xavierleroy on 2013-08-31T10:46:10Z) Resolution: suspended Priority: normal Severity: feature Category: ~DO NOT USE (was: OCaml general) Related to:#8136
Bug 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?
Chris
The text was updated successfully, but these errors were encountered:
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?
Chris
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.
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.
Original bug ID: 1438
Reporter: administrator
Status: closed (set by @xavierleroy on 2013-08-31T10:46:10Z)
Resolution: suspended
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)
Related to: #8136
Bug 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?
Chris
The text was updated successfully, but these errors were encountered: