Re: [Caml-list] Separating two mutually recursive modules

2008-08-23 Thread Jérémie Lumbroso
Hello, Thank you for your attempts ... I know of the double vision problem, and I am actually confused by the post which you reference. I think it discusses an old version of the typechecker, as the example which Xavier Leroy gives supposedly to illustrate the flaw now (3.10.2) properly

Re: [Caml-list] Separating two mutually recursive modules

2008-08-21 Thread Jérémie Lumbroso
Hello, Can I look at the code which does not type check without Obj.magic? Ideally something like if I comment out Obj.magic then I get a type error, and if I comment it in then the code type checks, so that I can identify the point of the issue? (In the context of this simplified example of

[Caml-list] Specifying recursive modules?

2008-08-20 Thread Jérémie Lumbroso
Hello, I'd always thought of separating specification and definition as simply not possible in OCaml, but OCaml's reference manual (3.10, which is, as far as I can tell, the most recent version of the documentation) seems to contradict my assumption:

Re: Re : [Caml-list] Specifying recursive modules?

2008-08-20 Thread Jérémie Lumbroso
-c modrec.ml (with modrec.ml having the same contents as modrec.mli) complains it has a syntax error. Matthieu - Message d'origine De : Jérémie Lumbroso [EMAIL PROTECTED] À : [EMAIL PROTECTED] Envoyé le : Mercredi, 20 Août 2008, 16h31mn 51s Objet : [Caml-list] Specifying

[Caml-list] Re: Multiple value declaration in .mli file

2008-08-15 Thread Jérémie Lumbroso
Hello, I guess you need it to mirror the value shadowing on the implementation side: include Foo let bar = baz This is legal if Foo already defines bar, and most of the time desired and useful. In the interface file you'll want to write : include FOO (* Foo's signature *) val