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 QAA00576; Mon, 17 Jun 2002 16:59:09 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA00617 for ; Mon, 17 Jun 2002 16:59:08 +0200 (MET DST) Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g5HEx6127004 for ; Mon, 17 Jun 2002 16:59:06 +0200 (MET DST) Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id g5HEx6p48637 ; Mon, 17 Jun 2002 16:59:06 +0200 (CEST) Received: from localhost (frisch@localhost) by clipper.ens.fr (8.12.3/jb-1.1) id g5HEx5kC022184 ; Mon, 17 Jun 2002 16:59:05 +0200 (MET DST) Date: Mon, 17 Jun 2002 16:59:05 +0200 (MET DST) From: Alain Frisch To: Basile STARYNKEVITCH cc: caml-list@inria.fr Subject: Re: [Caml-list] Camlp4: varargs ie a la Printf In-Reply-To: <15629.62581.329369.773250@is002254.saclay.cea.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, 17 Jun 2002, Basile STARYNKEVITCH wrote: > My problem is to produce a quotation of a list of expressions (and not > a quotation of a list expression). What should I put in place of the > comment WHAT SHOULD BE ADDED HERE? trace FOO "i=%d x=%g" i x end I'm not sure to understand how this is more difficult than the solution with Printf.kprintf; in both case, you want to generate a 'varargs' application, right ? Or what is a "list of expressions" ? Try something like: List.fold_left (fun e_1 e_2 -> <:expr< $e_1$ $e_2$ >>) -- 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