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 WAA32106; Thu, 13 Nov 2003 22:30:31 +0100 (MET) 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 WAA32102 for ; Thu, 13 Nov 2003 22:30:30 +0100 (MET) Received: from manzanita ([128.120.141.214]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hADLUT102007 for ; Thu, 13 Nov 2003 22:30:29 +0100 (MET) Received: from ijtrotts by manzanita with local (Exim 3.36 #1 (Debian)) id 1AKP3X-0000Mb-00 for ; Thu, 13 Nov 2003 13:31:11 -0800 Date: Thu, 13 Nov 2003 13:31:11 -0800 To: caml-list@inria.fr Subject: Re: [Caml-list] type issues with modules Message-ID: <20031113213111.GB895@localhost> References: <3FB0749C.80103@cs.uoregon.edu> <20031111172147M.garrigue@kurims.kyoto-u.ac.jp> <20031111182530.71a9a9c7.Damien.Pous@ens-lyon.fr> <20031112101211B.garrigue@kurims.kyoto-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031112101211B.garrigue@kurims.kyoto-u.ac.jp> User-Agent: Mutt/1.5.4i From: Issac Trotts X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 issac:01 trotts:01 ijtrotts:01 0900,:01 jacques:01 damien:01 damien:01 ens-lyon:01 mli:01 struct:01 ocamlc:01 -pack:01 mli:01 struct:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, Nov 12, 2003 at 10:12:11AM +0900, Jacques Garrigue wrote: > From: Damien > > > But I think that giving a name to the signature of Mod1 (Sig_mod1) could > > be useful : > > > > << > > module type MOD1 : sig end > > module Mod1 : MOD1 = struct end > > >> > > > > Especially when hand-packing some modules : > > "ocamlc -pack" checks the packed cmo against an optional interface file, > > but the latter is rather boring to write, since one has to copy&paste > > the content of each packed interface. > > I have already suggested in the past > > module type Mod1 = sig end > module Mod1 : Mod1 = struct end > > since modules and module types have independent name spaces. > But it was not accepted. > Maybe if more people insist, it will be added some day... I too would like to see this added. Out of curiousity, why was it rejected? -- Issac Trotts Programmer Center for Neuroscience University of California, Davis ------------------- 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