Browse thread
Re: [Caml-list] kprintf
- Damien Doligez
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2002-08-23 (12:56) |
From: | Damien Doligez <damien.doligez@i...> |
Subject: | Re: [Caml-list] kprintf |
>From: Christophe Delage <cdelage@ens-lyon.fr> > 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