From: Xavier Leroy <xleroy@pauillac.inria.fr>
To: Vladimir.Vyskocil@sophia.inria.fr (Vyskocil Vladimir)
Cc: caml-list@pauillac.inria.fr
Subject: Re: Merging Modules
Date: Thu, 12 Sep 1996 11:54:10 +0200 (MET DST) [thread overview]
Message-ID: <199609120954.LAA18065@pauillac.inria.fr> (raw)
In-Reply-To: <199609060935.LAA01708@psyche.inria.fr> from "Vyskocil Vladimir" at Sep 6, 96 11:35:16 am
> I have a simple question : can I merge two or more implementation
> files and get only one module (because in the standard case, each
> file define a new module). I want to split a module implementation
> into several files, is it possible ?
The Caml language does not support this. In Objective Caml, you can
have several sub-modules in one input file, but still all the source
code for the top module must reside in one source file.
A possibility is to compile each file as a distinct module (M1, M2, ...),
then have one extra file/module M that re-exports what is made public
to the remainder of the program, which then refers only to M. This is
exemplified in the Caml Light user's manual, chapter on camllibr.
Another possibility is to generate the module implementation from
several input files in your Makefile, using "cat", "cpp", or whatever
external tool does the job.
Regards,
- Xavier Leroy
next prev parent reply other threads:[~1996-09-12 11:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-09-06 9:35 Vyskocil Vladimir
1996-09-12 9:54 ` Xavier Leroy [this message]
1996-09-12 13:16 ` Mark Hayden
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=199609120954.LAA18065@pauillac.inria.fr \
--to=xleroy@pauillac.inria.fr \
--cc=Vladimir.Vyskocil@sophia.inria.fr \
--cc=caml-list@pauillac.inria.fr \
/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