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 SAA10367; Fri, 6 Sep 2002 18:42:50 +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 SAA10538 for ; Fri, 6 Sep 2002 18:42:49 +0200 (MET DST) Received: from c007.snv.cp.net (h008.c007.snv.cp.net [209.228.33.236]) by nez-perce.inria.fr (8.11.1/8.11.1) with SMTP id g86Ggl929739 for ; Fri, 6 Sep 2002 18:42:48 +0200 (MET DST) Received: (cpmta 14847 invoked from network); 6 Sep 2002 09:42:46 -0700 Received: from 65.187.194.217 (HELO localhost) by smtp.directvinternet.com (209.228.33.236) with SMTP; 6 Sep 2002 09:42:46 -0700 X-Sent: 6 Sep 2002 16:42:46 GMT Date: Fri, 6 Sep 2002 12:45:10 -0400 Subject: Re: [Caml-list] camlp4: pretty printing not to a file Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v482) Cc: Daniel de Rauglaudre , caml-list@inria.fr To: yann@lrde.epita.fr From: jehenrik In-Reply-To: <20020906090909.GA400@barcelona.lrde.epita.fr> Message-Id: <01FCC191-C1B8-11D6-9EB4-00039375801A@yahoo.com> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.482) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Erg, I have a trigger happy send button finger. I didn't get this right: > PCaml.make_formatted_printer : (unit -> Format.formatter) -> 'a Grammar.Entry.e -> 'a -> string Because how do you get the string out. How about PCaml.make_formatted_printer : (unit -> Format.formatter) -> (unit -> 'b) -> 'a Grammar.Entry.e -> 'a -> 'b So that way you can get out something besides a string if you wanted. Jeff ------------------- 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