Version franaise
Home About Download Resources Contact us

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
precision not working properly for strings in Printf?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-06-27 (10:46)
From: Quc_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,