From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA14062; Mon, 29 Sep 2003 09:45:00 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA06512 for ; Mon, 29 Sep 2003 09:44:59 +0200 (MET DST) Received: from ns.mccme.ru (ns.mccme.ru [62.117.108.3]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h8T7iwH19741 for ; Mon, 29 Sep 2003 09:44:58 +0200 (MET DST) Received: from mccme.ru (IDENT:potanin@mccme.ru [62.117.108.7]) by ns.mccme.ru (8.12.9/8.12.9) with SMTP id h8T6JrBq028939 for ; Mon, 29 Sep 2003 09:19:53 +0300 Date: Mon, 29 Sep 2003 11:44:24 +0400 (MSD) From: Mike Potanin To: caml-list@inria.fr Subject: Re: [Caml-list] Printf question In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: caml-list@inria.fr X-Spam: no; 0.00; potanin:01 potanin:01 mccme:01 caml-list:01 printf:01 alain:01 frisch:01 printf:01 standart:01 expander:01 camlp:01 scanf:01 expander:01 alain:01 bug:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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 "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