From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA06645; Thu, 28 Aug 2003 17:44:20 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA28410 for ; Thu, 28 Aug 2003 17:44:19 +0200 (MET DST) Received: from lri.lri.fr (lri.lri.fr [129.175.15.1]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h7SFiIT11960 for ; Thu, 28 Aug 2003 17:44:18 +0200 (MET DST) Received: from pc8-123 (pc8-123 [129.175.8.123]) by lri.lri.fr (8.11.6p2/jtpda-5.3.2) with ESMTP id h7SFPVY13223 ; Thu, 28 Aug 2003 17:25:31 +0200 (MEST) Received: from filliatr by pc8-123 with local (Exim 3.35 #1 (Debian)) id 19sOeQ-0005i4-00; Thu, 28 Aug 2003 17:25:30 +0200 From: Jean-Christophe Filliatre MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <16206.7914.941922.281396@gargle.gargle.HOWL> Date: Thu, 28 Aug 2003 17:25:30 +0200 To: "Sean McLaughlin" Cc: Subject: Re: [Caml-list] ocaml #load In-Reply-To: <000001c36d76$2ffd6510$187c8e88@tomlaptop1> References: <000001c36d76$2ffd6510$187c8e88@tomlaptop1> X-Mailer: VM 7.03 under Emacs 20.7.2 Reply-To: Jean-Christophe.Filliatre@lri.fr (Jean-Christophe Filliatre) X-MailScanner: Found to be clean X-Loop: caml-list@inria.fr X-Spam: no; 0.00; filliatre:01 filliatre:01 lri:01 caml-list:01 sean:99 nuisance:01 ocamldep:01 ocamldep:01 ocamldsort:01 dimitri:01 cmo:01 ocaml:01 ocaml:01 toplevel:01 writes:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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