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 RAA05112; Thu, 28 Aug 2003 17:32:42 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA01192 for ; Thu, 28 Aug 2003 17:32:41 +0200 (MET DST) Received: from postfix3-2.free.fr (postfix3-2.free.fr [213.228.0.169]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h7SFWef11183 for ; Thu, 28 Aug 2003 17:32:40 +0200 (MET DST) Received: from PWARP (lns-th2-3f-81-56-197-80.adsl.proxad.net [81.56.197.80]) by postfix3-2.free.fr (Postfix) with SMTP id BC009C2F1; Thu, 28 Aug 2003 17:32:37 +0200 (CEST) Message-ID: <002f01c36d79$9ad0a020$6f00a8c0@PWARP> From: "Nicolas Cannasse" To: "Sean McLaughlin" , References: <000001c36d76$2ffd6510$187c8e88@tomlaptop1> Subject: Re: [Caml-list] ocaml #load Date: Thu, 28 Aug 2003 17:32:28 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002C_01C36D8A.5A8A8DD0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; cannasse:01 warplayer:01 caml-list:01 nuisance:01 ocamldep:01 ocamldep:01 ocamlc:01 cannasse:01 nuisance:01 ocamlc:01 cmo:01 cmo:01 ocaml:01 ocaml:01 nicolas:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk This is a multi-part message in MIME format. ------=_NextPart_000_002C_01C36D8A.5A8A8DD0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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. =20 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 ------=_NextPart_000_002C_01C36D8A.5A8A8DD0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message
  I'm=20 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=20 correct order.  There is the ocamldep tool for compiling,but = I can't=20 find a similar tool or function for loading into the top=20 level.   Is there such a tool that, say, when I type ' = #load=20 'd.cmo', and d depends on c, c on b, b on a, somehow loads a then = b then=20 c then d?  I can imagine a simple tool that runs ocamldep and = repeatedly=20 greps the makefile and adds lines like "#load d.cmo" to a text file = until a=20 fixed point is reached. 
One other=20 solution is to build a CMA containing the list of the CMO you want to = load in=20 the right order (using ocamlc -a flag).
 
Nicolas=20 Cannasse
------=_NextPart_000_002C_01C36D8A.5A8A8DD0-- ------------------- 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