caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Pierre Weis <pierre.weis@inria.fr>
To: ck189400@zodiac.mimuw.edu.pl (Cezary Kaliszyk)
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] format type (again)
Date: Sat, 9 Nov 2002 17:33:18 +0100 (MET)	[thread overview]
Message-ID: <200211091633.RAA20638@pauillac.inria.fr> (raw)
In-Reply-To: <20021107171406.GA17139@zodiac.mimuw.edu.pl> from Cezary Kaliszyk at "Nov 7, 102 06:14:06 pm"

> Could anyone tell me where in ocaml source is the type checking of the
> format type. I really need a new identifier for a function taking exacly 
> one parameter of type unit.
> 
> Cezary Kaliszyk

[This is a kind of request for comments about the format type framework]

As already said by Gerd Stolpmann in this mailing list, the typing of
format strings is currently improving in the working version of
Objective Caml (in particular for kprintf, as Gerd pointed
out). Hence, it is a good time for requests for implementation of new
features (for printf or scanf in particular) to be included in the
next version of Objective Caml.

Your request for a new ``identifier for a function taking exactly one
parameter of type unit'', which I should call a request for a new
``conversion'', is such an extension, that we could easily add to the
framework.

However, you do not completely specified the feature you want, nor its
typical use. What would be the return type of the function ? Why is it
mandatory that the argument of the function has to be of tye unit (for
instance, why a %t conversion would not lead to the correct typing or
semantics ?). What could be the usefulness of such a conversion for
printf or scanf ?

So, all people reading this list who do need some extension to printf
or scanf or in general to the format type framework should drop me a
message personnally (not to overflow the Caml list :).

I already have a useful extension to add to handle easy i18n of printf
format strings, after a discussion with Daniel who is facing
tremendous needs for translation in his GeneWeb software (GeneWeb's
messages have been translated to more than 20 languages!)

I will summarize all your suggestions in a future message to this list.

Best regards,

Pierre Weis

INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis/


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


      parent reply	other threads:[~2002-11-09 16:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-07 17:14 Cezary Kaliszyk
2002-11-07 19:21 ` Thorsten Ohl
2002-11-09 16:33 ` Pierre Weis [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=200211091633.RAA20638@pauillac.inria.fr \
    --to=pierre.weis@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=ck189400@zodiac.mimuw.edu.pl \
    /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;
as well as URLs for NNTP newsgroup(s).