On 09/29/2011 06:03 PM, John Carr wrote: > One sentence summary: I added a local module generated by > functor application to an unpacked first class module and > the runtime blew up. [...] > The last active code in my source is a function that looks like this > in relevant part: > > let format chan x = > let f = Printf.fprintf chan "%s %d" in > begin match x with > | W (n,false) -> f "string" n > end > > Note the partial application of fprintf.
Could you first try to eliminate that partial application of fprintf? (Inline f at point of call, or eta-expand yourself.) The Printf module takes a lot of liberties with the type system (ahem), so it is one of the usual suspects in such a case. - Xavier Leroy -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs
