Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Can I import Thread, Unix, modules when using the Ocaml intepreter?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Issac Trotts <ijtrotts@u...>
Subject: Re: [Caml-list] Can I import Thread, Unix, modules when using the Ocaml intepreter?
On Sat, Feb 21, 2004 at 12:04:20PM -0800, Galchin Vasili wrote:
> Hello,
> 
>    Can I use modules like Thread, Unix, etc. from the
> interpreter, ocaml?
> 
> Regards, Vasili

Yes you can.  Just type

#load "unix.cma";;
#directory "+threads";;
#load "threads.cma";;

If you use them often, you can add these lines to your ~/.ocamlinit file.

-- 
Issac Trotts
http://redwood.ucdavis.edu/~issac

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