Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Jean-Christophe Filliatre <Jean-Christophe.Filliatre@lri.fr>
To: "Sean McLaughlin" <seanmcl@cs.nyu.edu>
Cc: <caml-list@inria.fr>
Subject: Re: [Caml-list] ocaml #load
Date: Thu, 28 Aug 2003 17:25:30 +0200	[thread overview]
Message-ID: <16206.7914.941922.281396@gargle.gargle.HOWL> (raw)
In-Reply-To: <000001c36d76$2ffd6510$187c8e88@tomlaptop1>


Sean McLaughlin writes:
 >  
 >   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.  

This has already been discussed on this list; see the archive.

ocamldsort is what you need; get it at http://dimitri.mutu.net/ocaml.html

Another solution is  to have your Makefile building  a custom toplevel
with your code (you still need  to write modules in the right order in
your Makefile but you'll probably end up doing it anyway).

Hope this helps,
-- 
Jean-Christophe Filliâtre


-------------------
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


  reply	other threads:[~2003-08-28 15:44 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 [this message]
2003-08-30 15:29   ` Dimitri Ara
2003-08-28 15:32 ` Nicolas Cannasse
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=16206.7914.941922.281396@gargle.gargle.HOWL \
    --to=jean-christophe.filliatre@lri.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