Version franaise
Home About Download Resources Contact us
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: -- (:)
From: Vincent Hanquez <vincent@s...>
Subject: Re: [Caml-list] precision not working properly for strings in Printf?
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).

Cheers,
-- 
Vincent Hanquez