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 WAA23521; Mon, 30 Jun 2003 22:28:56 +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 WAA23213 for ; Mon, 30 Jun 2003 22:28:54 +0200 (MET DST) Received: from mwinf0104.wanadoo.fr (smtp8.wanadoo.fr [193.252.22.30]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h5UKSsf29216 for ; Mon, 30 Jun 2003 22:28:54 +0200 (MET DST) Received: from zofo (Mix-Grenoble-110-1-253.w80-9.abo.wanadoo.fr [80.9.191.253]) by mwinf0104.wanadoo.fr (SMTP Server) with SMTP id 51ED41BFFF86 for ; Mon, 30 Jun 2003 22:28:53 +0200 (CEST) Message-ID: <004d01c33f46$2f16f480$fdbf0950@zofo> From: "Jean-Baptiste Rouquier" To: Subject: Re: [Caml-list] how to use a module Date: Mon, 30 Jun 2003 22:11:54 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam: no; 0.00; caml-list:01 foo:01 baz:01 qux:99 quz:99 cmo:01 ocaml:01 caml:01 modules:02 module:03 directive:03 cma:03 wrote:03 let:04 compiled:05 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >I'm having trouble (using the modules or the files that I wrote) (in the interactive mode of OCaml). (*First, let Caml know where you put your files if they aren't in the current directory :*) #directory "foo/bar";; (*This is the "include" directive (see the manual) :*) #use "baz.ml";; (*if you file is already compiled, you can use :*) #load "qux.cmo";; (*but you have to "#load" all the files that egg uses, for instance if egg.ml contains "Graphics.open_graph", then you must load graphics before (as when you link the main programm) :*) #load "graphics.cma";; #load "egg.cmo";; (*If you want to state "quz ()" instead of "Egg.quz ()", just open this module (it requires egg.cmi in the list of searching directories) :*) open Egg;; JB ------------------- 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