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 NAA01189; Fri, 20 Aug 2004 13:28:36 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id NAA01177 for ; Fri, 20 Aug 2004 13:28:33 +0200 (MET DST) Received: from smtp-2.syd.swiftdsl.com.au (smtp-2.syd.swiftdsl.com.au [218.214.224.98]) by concorde.inria.fr (8.12.10/8.12.10) with SMTP id i7KBSTRM016038 for ; Fri, 20 Aug 2004 13:28:32 +0200 Received: (qmail 32385 invoked from network); 20 Aug 2004 11:28:43 -0000 Received: from unknown (HELO smtp.syd.swiftdsl.com.au) (202.154.83.58) by smtp-2.syd.swiftdsl.com.au with SMTP; 20 Aug 2004 11:28:43 -0000 Received: (qmail 25837 invoked from network); 20 Aug 2004 11:28:29 -0000 Received: from unknown (HELO coltrane.mega-nerd.net) (218.214.64.136) by smtp.syd.swiftdsl.com.au with SMTP; 20 Aug 2004 11:28:29 -0000 Received: from coltrane (localhost [127.0.0.1]) by coltrane.mega-nerd.net (Postfix) with SMTP id 95D0A7AE1 for ; Fri, 20 Aug 2004 21:28:18 +1000 (EST) Date: Fri, 20 Aug 2004 21:28:18 +1000 From: Erik de Castro Lopo To: caml-list@inria.fr Subject: [Caml-list] Programming with modules Message-Id: <20040820212818.0f8f1b10.ocaml-erikd@mega-nerd.com> Organization: Erik Conspiracy Secret Labs X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 4125E05D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; mli:01 crap:01 ocaml:01 alexander:01 modules:02 nospam:97 module:03 interface:03 anybody:03 erik:06 erik:06 i'd:06 type:07 programming:07 defines:08 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi all, Say I have a module (main.ml) and an interface (main.mli) which defines a type maintype. However, main.ml is getting a little large and I'd like to split some of the functionality out into another file, but still have access to maintype in the new file. Unfortunately, Ocaml doesn't allow mutual dependancies across acoss files. Does anybody have any suggestions on how to get around this? TIA, Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo nospam@mega-nerd.com (Yes it's valid) +-----------------------------------------------------------+ "Crap can work. Given enough thrust pigs will fly, but it's not necessary a good idea." -- Alexander Viro on linux-kernel mailing list ------------------- 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