Browse thread
printf and positional specifier
-
Anastasia Gornostaeva
-
Peter Gregory
-
Martin Jambon
-
Peter Gregory
- Martin Jambon
- Anastasia Gornostaeva
-
Peter Gregory
- Anastasia Gornostaeva
-
Martin Jambon
-
Peter Gregory
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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: 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