English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] one more thing
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-12-29 (21:17)
From: Florian Hars <florian@h...>
Subject: Re: [Caml-list] one more thing
On Fri, Dec 28, 2001 at 12:43:41AM -0600, Will Benton wrote:
> Is there some way to get ocamlyacc to include some code in the parser.mli
> file it generates?  I'm having ocamlyacc generate objects whose type
> constructors are defined in another module, and I have "open Module" in
> the .mly file -- but, since it isn't included in the .mli file, the .mli
> file won't compile.  (Or is my environment screwed-up?)

The last time  somehing like this was discussed (
) the recommended solution was to put all definitions in a separate
module and use fully qualified names in the mly, so they end up
fully qualified in the mli, so don't say "open Module", but 
"Module.some_function x". It is preferrable for reasons of 
maintainability, anyway.

Yours, Florian Hars.
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr