Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Hendrik Tews <H.Tews@cs.ru.nl>
To: caml-list@inria.fr
Subject: positional specifiers in format strings
Date: Thu, 24 May 2007 13:36:13 +0200	[thread overview]
Message-ID: <18005.30893.97417.735516@tandem.cs.ru.nl> (raw)

Hi,

the positional specifiers in format strings don't work as
described. Both "%5$f" and "%.*3$f" are valid format strings
according to the docs, however:

	    Objective Caml version 3.10.0

    # Printf.printf "%5$f";;
    Bad conversion %$, at char number 0 in format string ``%5$f''
    # Printf.printf "%.*3$f";;
    Bad conversion %3, at char number 0 in format string ``%.*3$f''

[BTW, the manual says "For instance, %.*3$f prints a float with ..."
 -- I don't see any float in the output produced
 ;-)]

Could somebody explain how to use the positional specifiers? 

Bye,

Hendrik


                 reply	other threads:[~2007-05-24 11:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=18005.30893.97417.735516@tandem.cs.ru.nl \
    --to=h.tews@cs.ru.nl \
    --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