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 OAA00703; Fri, 23 Aug 2002 14:56:11 +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 OAA00372 for ; Fri, 23 Aug 2002 14:56:10 +0200 (MET DST) Received: from beaune.inria.fr (beaune.inria.fr [128.93.8.3]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g7NCu9D12881 for ; Fri, 23 Aug 2002 14:56:09 +0200 (MET DST) Received: by beaune.inria.fr (8.8.8/1.1.22.3/14Sep99-0328PM) id OAA0000018878; Fri, 23 Aug 2002 14:56:09 +0200 (MET DST) Date: Fri, 23 Aug 2002 14:56:09 +0200 (MET DST) From: Damien Doligez Message-Id: <200208231256.OAA0000018878@beaune.inria.fr> To: caml-list@inria.fr, cdelage@ens-lyon.fr Subject: Re: [Caml-list] kprintf Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >From: Christophe Delage > mykprintf : (string -> 'b) -> ('a, string -> 'b, 'b) format -> 'a > >and (as far as I know) there were no problems, Consider this: mykprintf f "%a" g x If x has type 'c, then g must have type (string -> 'b) -> 'c -> 'b; mykprintf will call (g f x) and insert the result (which has type 'b) in the string that will be passed to f as argument. This can only make sense if 'b = string. -- Damien ------------------- 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