From: Alan Schmitt <alan.schmitt@inria.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Printf: variable field width/precision
Date: Fri, 12 Oct 2001 19:31:00 +0200 [thread overview]
Message-ID: <20011012193100.G1899@alan-schm1p> (raw)
In-Reply-To: <20011012162347.D18676@pauillac.inria.fr>; from xavier.leroy@inria.fr on ven, oct 12, 2001 at 04:23:47 +0200
* Xavier Leroy (xavier.leroy@inria.fr) wrote:
> > In the C library, printf(3) supports variable field widths and
> > precisions with the `*' specifier.
> > Unfortunately, neither the O'Caml library nor the compiler accept `*'.
> > If the `*' form is available, the `*m$' form is hardly needed, but I
> > couldn't find a way to hack around the missing `*' (handling every
> > conceivable width/precision pair as a special case doesn't count ...).
> >
> > Is there are chance that variable field widths for the benefit of
> > numerical programs will be supported in the future?
>
> I've never needed the '*' specifier so far, but I agree this should be
> supported at some point. As far as I can say, this requires a bit of
> work, though.
By the way, it also seems that the + format is not supported either:
# Printf.printf "%+f" 2. ;;
Bad format `%+'
Alan
--
The hacker: someone who figured things out and made something cool happen.
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
prev parent reply other threads:[~2001-10-12 17:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-08 16:09 Thorsten Ohl
2001-10-12 14:23 ` Xavier Leroy
2001-10-12 17:31 ` Alan Schmitt [this message]
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=20011012193100.G1899@alan-schm1p \
--to=alan.schmitt@inria.fr \
--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