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 HAA14070; Thu, 7 Oct 2004 07:38:09 +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 HAA13057 for ; Thu, 7 Oct 2004 07:38:06 +0200 (MET DST) Received: from swordfish.havenrock.com ([216.241.35.41]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id i975bt3X032413 for ; Thu, 7 Oct 2004 07:37:56 +0200 Received: by swordfish.havenrock.com (Postfix, from userid 1000) id 997BA2F60; Wed, 6 Oct 2004 23:38:01 -0600 (MDT) Date: Wed, 6 Oct 2004 23:38:01 -0600 From: Matt Gushee To: caml-list@pauillac.inria.fr Subject: Re: [Caml-list] Do you like files as modules? Message-ID: <20041007053801.GA16450@swordfish> Reply-To: Matt Gushee Mail-Followup-To: caml-list@pauillac.inria.fr References: <1097118765.20680.565.camel@pelican.wigram> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1097118765.20680.565.camel@pelican.wigram> User-Agent: Mutt/1.3.27i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; gushee:01 mgushee:01 havenrock:01 caml-list:01 2004:99 python:01 'foo:01 kludges:01 'foo:01 foo:01 foo:01 arbitrarily:01 gushee:01 haven:99 manure:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, Oct 07, 2004 at 01:12:46PM +1000, skaller wrote: > > In both Ocaml and Python, the module name is also > coupled to the filename. This doesn't bother me, but it would be nice if the compilers had an option allowing you to associate differently-named interface and implementation files. Currently, if you have an interface 'foo.mli', with several possible implementations, you have to resort to kludges like creating subdirectories a/, b/, and c/, each with a different version of 'foo.ml', one of which gets copied into the main directory at build time. It should be possible to have foo_a.ml, foo_b.ml, and foo_c.ml, and arbitrarily select one as the implementation of Foo. -- Matt Gushee When a nation follows the Way, Haven Rock Press Horses bear manure through Englewood, Colorado, USA its fields; books@havenrock.com When a nation ignores the Way, Horses bear soldiers through its streets. --Lao Tzu (Peter Merel, trans.) ------------------- 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