From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id AD429BC68 for ; Sat, 11 Nov 2006 22:38:49 +0100 (CET) Received: from home.mk.pp.ru (av6800.comex.ru [217.10.34.155]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id kABLcngb025501 for ; Sat, 11 Nov 2006 22:38:49 +0100 Received: from ermine.home (ermine.home [192.168.2.2]) by home.mk.pp.ru (Postfix) with ESMTP id 163F720A20; Sun, 12 Nov 2006 00:38:30 +0300 (MSK) Received: by ermine.home (Postfix, from userid 1001) id A3AE83A9CD0; Sun, 12 Nov 2006 00:40:52 +0300 (MSK) Date: Sun, 12 Nov 2006 00:40:52 +0300 From: Anastasia Gornostaeva To: Peter Gregory Cc: caml-list@inria.fr Subject: Re: [Caml-list] printf and positional specifier Message-ID: <20061111214052.GA15424@ermine.home> References: <20061111201226.GA14282@ermine.home> <4556342C.10109@cis.strath.ac.uk> <45563D79.4070207@cis.strath.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <45563D79.4070207@cis.strath.ac.uk> User-Agent: Mutt/1.5.11 X-Miltered: at discorde with ID 455642E9.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; printf:01 specifier:01 specifies:01 gettext:01 gettext:01 wrote:01 caml-list:01 argument:02 argument:02 output:02 confusing:02 module:03 gnu:03 library:03 context:04 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: http://www.gnu.org/software/gettext/manual/html_mono/gettext.html#SEC18 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. ermine