Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] access to a module
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Yunming.WANG@e...
Subject: [Caml-list] access to a module
I have a file named myutils.ml whose content is :

let rec remove s list = match list with
        | [] -> []
        | h::l -> if (h=s) then l else h::(remove s l)
;;

let rec listminus a b = match b with
| [] -> a
| h::t -> listminus (remove h a) t
;;

I compile the file : ocamlc -c myutils.ml

I open Myutils :

ocaml
        Objective Caml version 3.04

# open Myutils;;

But I have not access to Myutils.  What's the problem ?

# Myutils.listminus;;
Reference to undefined global `Myutils'
#

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