Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Re: [Caml-list] kprintf
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Damien Doligez <damien.doligez@i...>
Subject: Re: [Caml-list] kprintf
>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 Archives:
Bug reports: FAQ:
Beginner's list: