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 NAA04549; Thu, 20 Jun 2002 13:05:00 +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 NAA04524 for ; Thu, 20 Jun 2002 13:04:59 +0200 (MET DST) Received: from mailhub1.isdnet.net (mailhub1.isdnet.net [195.154.209.21]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g5KB4xH19837 for ; Thu, 20 Jun 2002 13:04:59 +0200 (MET DST) Received: from karma.esterel-technologies.com ([62.210.152.135]) by mailhub1.isdnet.net (8.9.3/8.9.3) with ESMTP id NAA74550 for ; Thu, 20 Jun 2002 13:04:58 +0200 (CEST) From: Yunming.WANG@esterel-technologies.com Subject: [Caml-list] access to a module To: caml-list@inria.fr X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: Date: Thu, 20 Jun 2002 13:04:16 +0200 X-MIMETrack: Serialize by Router on ANGEL/SRV/ESTEREL(Release 5.0.5 |September 22, 2000) at 20/06/2002 13:04:18 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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