Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Printf question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Mike Potanin <potanin@m...>
Subject: Re: [Caml-list] Printf question
On Fri, 26 Sep 2003 Alain.Frisch@ens.fr wrote:

> On Fri, 26 Sep 2003, Richard Jones wrote:
>
> If you're ready to write
>
>   <:my_printf<The string: %s> "string with 'quotes'"

Simple example http://wtk.ru/pm/fp/caml/qprintf.tgz
It is more effective standart "dynamic" printf. :-)

>
> instead, you can write your own quotation expander with Camlp4 and
> implement the behavior you want.  Mmmh, a re-implementation of the
> Printf and Format modules with this technique would be nice.
> And also for Scanf (with a pattern quotation expander?).
>
> Yes, the typing of the printf functions are magic, and their
> implementation also. You cannot adapt their behavior without hacking the
> compiler and using the Obj module.
>
> -- Alain
>
> -------------------
> 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
>

-------------------
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