From: Anastasia Gornostaeva <ermine@ermine.pp.ru>
To: Peter Gregory <Peter.Gregory@cis.strath.ac.uk>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] printf and positional specifier
Date: Sun, 12 Nov 2006 00:40:52 +0300 [thread overview]
Message-ID: <20061111214052.GA15424@ermine.home> (raw)
In-Reply-To: <45563D79.4070207@cis.strath.ac.uk>
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
next prev parent reply other threads:[~2006-11-11 21:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-11 20:12 Anastasia Gornostaeva
2006-11-11 20:35 ` [Caml-list] " Peter Gregory
2006-11-11 20:52 ` Martin Jambon
2006-11-11 21:15 ` Peter Gregory
2006-11-11 21:26 ` Martin Jambon
2006-11-11 21:40 ` Anastasia Gornostaeva [this message]
2006-11-12 0:46 ` Martin Jambon
2006-11-11 20:59 ` Anastasia Gornostaeva
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061111214052.GA15424@ermine.home \
--to=ermine@ermine.pp.ru \
--cc=Peter.Gregory@cis.strath.ac.uk \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox