From: Florian Hars <florian@hars.de>
To: Will Benton <willb@cs.wisc.edu>
Cc: caml-list@pauillac.inria.fr
Subject: Re: [Caml-list] one more thing
Date: Sat, 29 Dec 2001 22:15:37 +0100 [thread overview]
Message-ID: <20011229221537.A4862@hars> (raw)
In-Reply-To: <Pine.LNX.4.21.0112280041150.14207-100000@cilantro.cs.wisc.edu>; from willb@cs.wisc.edu on Fri, Dec 28, 2001 at 12:43:41AM -0600
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 (
http://caml.inria.fr/archives/200110/msg00209.html
) 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
prev parent reply other threads:[~2001-12-29 21:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-28 6:43 Will Benton
2001-12-29 21:15 ` Florian Hars [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011229221537.A4862@hars \
--to=florian@hars.de \
--cc=caml-list@pauillac.inria.fr \
--cc=willb@cs.wisc.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox