Browse thread
precision not working properly for strings in Printf?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Quôc_Peyrot <chojin@l...> |
| Subject: | Re: [Caml-list] precision not working properly for strings in Printf? |
On Jun 27, 2007, at 10:34 AM, Vincent Hanquez wrote: > On Wed, Jun 27, 2007 at 12:11:01AM -0400, Jonathan Bryant wrote: >> The OCaml standard library isn't glibc. The implementation of the >> Printf/Scanf modules is custom, OCaml specific and tied into the >> compiler, so one should not assume the behave the same way. They are >> not simply wrappers. As a matter of fact, they have several other >> differences from the glibc printf family of functions (look at the >> conversion specifiers in the docs). >> >>> As said above, this is not how printf is working in the glibc (at >>> least on linux and Mac OS X). Any clue why the same convention has >>> not been followed? >> >> See above. > > What about reading before replying ? > Your "explanation" certainly doesn't answer his question. > whether or not it's the same *implementation* doesn't answer why ocaml > printf choosed a different *convention* (specially on this case > which I > don't see any contradiction in the way ocaml works). Thanks for your support ;) I was starting to wonder why I was getting such dismissive answers -- Best Regards, Quôc