From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 080ABD45F for ; Wed, 2 Nov 2005 02:45:46 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id jA21jjjr014520 for ; Wed, 2 Nov 2005 02:45:45 +0100 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 CAA10430 for ; Wed, 2 Nov 2005 02:45:45 +0100 (MET) Received: from smtp102.sbc.mail.mud.yahoo.com (smtp102.sbc.mail.mud.yahoo.com [68.142.198.201]) by nez-perce.inria.fr (8.13.0/8.13.0) with SMTP id jA21jhZ6018790 for ; Wed, 2 Nov 2005 02:45:44 +0100 Received: (qmail 65299 invoked from network); 2 Nov 2005 01:45:40 -0000 Received: from unknown (HELO ?192.168.1.100?) (rftp@pacbell.net@63.194.18.166 with plain) by smtp102.sbc.mail.mud.yahoo.com with SMTP; 2 Nov 2005 01:45:39 -0000 Message-ID: <43681A47.6010409@rftp.com> Date: Tue, 01 Nov 2005 17:45:43 -0800 From: Robert Roessler Organization: Robert's High-performance Software User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051026 SeaMonkey/1.1a MIME-Version: 1.0 To: Caml-list Subject: Re: [Caml-list] Nesting Modules References: <43679EEF.70102@confluent.org> In-Reply-To: <43679EEF.70102@confluent.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 43681A49.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 43681A47.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 nesting:01 mli:01 mli:01 compiler:01 ...:98 ...:98 wrote:01 inline:01 modules:01 modules:01 defined:01 hierarchical:02 somewhere:02 construct:02 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 Tom Hawkins wrote: > Is it possible to nest modules defined in separate files? > > For example, assume I have... > > top.ml > top.mli > bottom.ml > bottom.mli > > Can I instruct the compiler to nest Bottom somewhere in Top, to obtain > clean, hierarchical names (eg: Top.Bottom.some_function)? Of course I > can inline bottom.ml in top.ml, but then the file become rather large. It seems like the "include" construct might be of help... Robert Roessler roessler@rftp.com http://www.rftp.com