Browse thread
Re: [Caml-list] how to use a module
- Jean-Baptiste Rouquier
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Jean-Baptiste Rouquier <jb.rouquier@w...> |
| Subject: | Re: [Caml-list] how to use a module |
>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