[ocaml-platform] on the need and design of OCaml namespaces

Markus Mottl markus.mottl at gmail.com
Mon Feb 25 15:10:27 GMT 2013


On Mon, Feb 25, 2013 at 9:15 AM, Anil Madhavapeddy <anil at recoil.org> wrote:
> I think it would work if placed as a feature into type_conv itself, as the individual generators (e.g. sexp/orm) all register themselves with it quite early.  They could request global modules, which type_conv does in one pass (thus also avoiding duplicate requests for the original namespace).

I'm not sure that type_conv should be the place to implement this.
Since this issue can affect all kinds of camlp4 macros, it seems like
a feature that camlp4 should provide.  There should be some
standardized module name, e.g. "Camlp4_stdlib" or similar, which would
allow generated code to refer to the original OCaml standard library.

Regards,
Markus

-- 
Markus Mottl        http://www.ocaml.info        markus.mottl at gmail.com


More information about the Platform mailing list