Date: Tue, 19 Oct 1999 20:15:24 +0100
From: William Chesters <email@example.com>
To: Alain Frisch <firstname.lastname@example.org>
Subject: $0.02 suggestion for the Printf module
Alain Frisch writes:
> As I want to do it often, it would be useful to have a function :
> gen_printf: (string -> ()) -> ('a, Buffer.t, unit) format -> 'a
> [or for performance (string -> ()) -> (char -> ()) -> ('a, ... ]
> taking as its first argument a 'printing function'
You can do this with Format (and of course you get pretty-printing as
well)---see Format.formatter_of_out_channel, etc. I don't know what
the performance difference, if any, between Printf and Format is.
This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:27 MET