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 AAA02902; Mon, 5 Aug 2002 00:54:24 +0200 (MET DST) Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id AAA02638 for caml-list@pauillac.inria.fr; Mon, 5 Aug 2002 00:54:24 +0200 (MET DST) 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 CAA23830 for ; Sun, 4 Aug 2002 02:38:27 +0200 (MET DST) Received: from swordfish.cs.caltech.edu (swordfish.cs.caltech.edu [131.215.44.124]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g740cPf12161 for ; Sun, 4 Aug 2002 02:38:26 +0200 (MET DST) Received: from orchestra.cs.caltech.edu (orchestra.cs.caltech.edu [131.215.44.20]) by swordfish.cs.caltech.edu (Postfix) with ESMTP id C360EDF260 for ; Sat, 3 Aug 2002 17:38:23 -0700 (PDT) Received: (from mvanier@localhost) by orchestra.cs.caltech.edu (8.11.6/8.9.3) id g740cMw30129; Sat, 3 Aug 2002 17:38:22 -0700 Date: Sat, 3 Aug 2002 17:38:22 -0700 Message-Id: <200208040038.g740cMw30129@orchestra.cs.caltech.edu> X-Authentication-Warning: orchestra.cs.caltech.edu: mvanier set sender to mvanier@cs.caltech.edu using -f From: Michael Vanier To: caml-list@inria.fr Subject: [Caml-list] incredibly dumb beginner's question about modules Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, I would post this to the caml-beginners mailing list but I can't find it :-( I'm just getting started with ocaml modules and I've run into a ridiculously trivial problem that I can't solve. Consider this file: (* test.ml *) module Foo = struct type foo = int array array let make_foo () = Array.make_matrix 8 8 0 end (* end of test.ml *) I compile this with "ocamlc -c test.ml". No problems so far. Then I open an interactive toplevel: # open Test;; # Foo.make_foo ();; Reference to undefined global `Test' # What's going on? What am I not doing that I should be doing? Thanks in advance, Mike ------------------- 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