caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] access to a module
@ 2002-06-20 11:04 Yunming.WANG
  0 siblings, 0 replies; only message in thread
From: Yunming.WANG @ 2002-06-20 11:04 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-06-20 11:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-20 11:04 [Caml-list] access to a module Yunming.WANG

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).