From: "Nicolas Cannasse" <warplayer@free.fr>
To: "Sean McLaughlin" <seanmcl@cs.nyu.edu>, <caml-list@inria.fr>
Subject: Re: [Caml-list] ocaml #load
Date: Thu, 28 Aug 2003 17:32:28 +0200 [thread overview]
Message-ID: <002f01c36d79$9ad0a020$6f00a8c0@PWARP> (raw)
In-Reply-To: <000001c36d76$2ffd6510$187c8e88@tomlaptop1>
[-- Attachment #1: Type: text/plain, Size: 729 bytes --]
Message I'm building a large program in ocaml that I'll want to run using the interpreter. It is a nuisance having to load all the files in the correct order. There is the ocamldep tool for compiling,but I can't find a similar tool or function for loading into the top level. Is there such a tool that, say, when I type ' #load 'd.cmo', and d depends on c, c on b, b on a, somehow loads a then b then c then d? I can imagine a simple tool that runs ocamldep and repeatedly greps the makefile and adds lines like "#load d.cmo" to a text file until a fixed point is reached.
One other solution is to build a CMA containing the list of the CMO you want to load in the right order (using ocamlc -a flag).
Nicolas Cannasse
[-- Attachment #2: Type: text/html, Size: 1618 bytes --]
next prev parent reply other threads:[~2003-08-28 15:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-28 15:08 Sean McLaughlin
2003-08-28 15:25 ` Jean-Christophe Filliatre
2003-08-30 15:29 ` Dimitri Ara
2003-08-28 15:32 ` Nicolas Cannasse [this message]
2003-09-03 10:40 ` Eray Ozkural
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='002f01c36d79$9ad0a020$6f00a8c0@PWARP' \
--to=warplayer@free.fr \
--cc=caml-list@inria.fr \
--cc=seanmcl@cs.nyu.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