From: Vincent Barichard <barichar@info.univ-angers.fr>
To: CAML-LIST <caml-list@pauillac.inria.fr>
Subject: [Caml-list] module managing question
Date: Mon, 19 Aug 2002 12:14:40 +0200 (MEST) [thread overview]
Message-ID: <Pine.GSO.4.44.0208191157060.24586-100000@helios.info-ua> (raw)
Hi,
I have a question on the manage of modules files. I use the toplevel
system to make some algorithms and then I compile them to get efficient
executable file.
Is it possible to have exactly the same files for the two stage. For
example, in the ocaml toplevel, I load the two following files a.ml and
b.ml with the #use command.
In a file named a.ml, I have :
module A = struct
let f = function _ -> 0
end
In a second file named b.ml, I have :
module B = struct
open A
let g = f
end
Everything works well.
But when I want to compile them, I have to put in comments the "(*module ?
= struct*)" and the "(* end *)" to make it works.
Is there another way to proceed ?
Thanks
Vincent
Vincent Barichard
Métaheuristiques et Optimisation Combinatoire
Faculté des Sciences d'Angers
Tel : 02 41 73 52 06
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next reply other threads:[~2002-08-19 13:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-19 10:14 Vincent Barichard [this message]
2002-08-20 7:42 ` [Caml-list] " Michaël Grünewald
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=Pine.GSO.4.44.0208191157060.24586-100000@helios.info-ua \
--to=barichar@info.univ-angers.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