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 QAA02684; Thu, 15 Aug 2002 16:52:21 +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 QAA02693 for ; Thu, 15 Aug 2002 16:52:20 +0200 (MET DST) Received: from mailhost.ens-lyon.fr (pluvier.ens-lyon.fr [140.77.167.5]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g7FEqKn02679 for ; Thu, 15 Aug 2002 16:52:20 +0200 (MET DST) Received: from ponant.ens-lyon.fr ([140.77.191.80] helo=ponant) by mailhost.ens-lyon.fr with esmtp (Exim 3.35 #1 (Debian)) id 17fLz1-0004M8-00 for ; Thu, 15 Aug 2002 16:52:19 +0200 Date: Thu, 15 Aug 2002 16:52:19 +0200 (MEST) From: Christophe Delage X-Sender: cdelage@ponant To: caml-list@inria.fr Subject: [Caml-list] kprintf Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, I saw that this function has just been added to ocaml, I think this is a good idea, but I am wondering why the continuation function should return a string. I wrote once, for my programs, a "kprintf-like" function with _exactly_ the same code (there is not much difference between sprintf and kprintf ;-), but I forced the type : mykprintf : (string -> 'b) -> ('a, string -> 'b, 'b) format -> 'a and (as far as I know) there were no problems, mykprintf f fmt a1 .. an seems to do the same thing (and have the same type) as f (mykprintf fmt a1 .. an) whatever the return type of f is. I saw a post in the list about "technical reasons", could somebody be more precise ? -Christophe ------------------- 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