On 10/03/2011 10:30 AM, Markus Mottl wrote: > On Mon, Oct 3, 2011 at 10:23, Michael Ekstrand <[email protected]> wrote: >> I'm trying to build code against sexplib 7.0.4, and the code emitted by >> the syntax extension has unqualified references to the base converters >> like sexp_of_list and int_of_sexp. The result is that the sexplib-using >> code fails to compile with undefined references. I've found this trying >> to rebuild rpmdepsize, and also with some test code I have. >> >> Is this a bug in 7.0.4, or are there source-level changes required to >> build against recent versions of sexplib? It feels more like a bug to >> me, as I shouldn't need to open a module like Sexplib.Conv to make the >> generated code work. > This is indeed intended behavior, which is unfortunately not yet > well-documented. The library used to generate code with hard-coded > module paths to the standard conversion functions. This made it hard > to override them. The new library therefore requires you to "open > Sexplib.Std" (not Sexplib.Conv btw.) if you are happy with all > standard converters. The effort is minimal, makes it explicit what > conversion functions are being used, and overriding is as easy as > (automatic) rebinding.
Thank you for the update. Could you add a note to this effect to the README for a future release? Thanks! - Michael -- 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
