From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA21754 for caml-red; Sun, 7 Jan 2001 21:23:12 +0100 (MET) 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 UAA24115 for ; Sun, 7 Jan 2001 20:43:02 +0100 (MET) Received: from sirius-b.ihep.su (sirius-b.ihep.su [194.190.161.4]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f07Jgq505732 for ; Sun, 7 Jan 2001 20:42:53 +0100 (MET) Received: from ihep.su (ihep.ihep.su [194.190.161.127]) by sirius-b.ihep.su (8.10.0/8.10.0) with SMTP id f07Jgnb11755; Sun, 7 Jan 2001 22:42:49 +0300 (MSK) X-Sender: vsl@ontil.ihep.su Received: from ontil.ihep.su by ihep.su (5.65v4.0/RELCOM-IHEPv4.7) id AA15736; Sun, 7 Jan 2001 22:42:47 +0300 Date: Sun, 7 Jan 2001 23:37:08 +0300 (MSK) From: Vitaly Lugovsky To: Charles Martin Cc: caml-list@inria.fr Subject: Re: Module hierarchies In-Reply-To: <5.0.0.25.0.20010106112842.00a3eeb0@chasm.org> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: weis@pauillac.inria.fr On Sat, 6 Jan 2001, Charles Martin wrote: > I am wondering how a large OCaml project might be structured, specifically > in terms of directories and files. [...] > I think this would be helpful for structuring large projects. It would > also make it easier to incorporate third-party utilities, since we could > then adopt Java-style naming conventions: the distribution modules would > all be wrapped inside Ocaml, and everything else would use the inverted > domain name convention: There is an easy solution: 1) allow dots in module names 2) write a compilation script, which converts directory structure to a number of files with dots. [I really hate javish directory hierarchy for classfiles - it's good for sources, not for binaries] And, btw, findlib is also a good tool for a big project structuring. -- V.S.Lugovsky aka Mauhuur (http://ontil.ihep.su/~vsl) (UIN=45482254)