English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
printf and positional specifier
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-11-11 (21:38)
From: Anastasia Gornostaeva <ermine@e...>
Subject: Re: [Caml-list] printf and positional specifier
On Sat, Nov 11, 2006 at 09:15:37PM +0000, Peter Gregory wrote:

> I take a different reading to you Martin, although I think it is 
> confusing.  I believe that the number specified before the dollar sign 
> is the argument that specifies the /precision/ of the output.
> So, it is not to specify the argument to print, but the argument to use 
> as precision.  That said, I tried it in the context they suggest and I 
> couldn't make it work!
> Ermine: do you have a situation where this is important?  I can't think 
> of any situation that comes to mind.

For example:

In fact I have my own module for translations and i'm interesting in this 
printf's feature.

P.s. Yes, I know about ocaml-gettext library.