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 JAA02145; Fri, 6 Aug 2004 09:53:53 +0200 (MET DST) 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 JAA02650 for ; Fri, 6 Aug 2004 09:53:52 +0200 (MET DST) Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i767rpRM003679 for ; Fri, 6 Aug 2004 09:53:52 +0200 Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef.ens.fr (8.12.11/1.01.28121999) with ESMTP id i767rpWI060063 ; Fri, 6 Aug 2004 09:53:51 +0200 (CEST) Received: from localhost (frisch@localhost) by clipper.ens.fr (8.12.3/jb-1.1) id i767rncQ010647 ; Fri, 6 Aug 2004 09:53:50 +0200 (MET DST) X-Authentication-Warning: clipper.ens.fr: frisch owned process doing -bs Date: Fri, 6 Aug 2004 09:53:49 +0200 (MET DST) From: Alain Frisch X-X-Sender: frisch@clipper.ens.fr Reply-To: Alain Frisch To: Christophe Raffalli cc: caml-list@pauillac.inria.fr Subject: Re: [Caml-list] Conditional Modules In-Reply-To: <4112582A.7020703@univ-savoie.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.3.3 (nef.ens.fr [129.199.96.32]); Fri, 06 Aug 2004 09:53:51 +0200 (CEST) X-Miltered: at concorde with ID 4113390F.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; alain:01 frisch:01 alain:01 frisch:01 caml-list:01 raffalli:01 functor:01 moscowml:01 moscowml:01 dependencies:01 equivalently:01 functors:01 christophe:01 ocaml:01 afaik:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, 5 Aug 2004, Christophe Raffalli wrote: > Is there plan to have first class modules in OCaml (in other word merge > record/structure and function/functor) ? If I understood well (I did not > look myself) MoscowML has this. AFAIK, MoscowML had packaged modules, which keeps the two levels (core / module) stratified, but allows a module to be packaged in a value. In this system, you can write functions from packaged modules to packaged modules, but you cannot express type dependencies between the input and the output type (equivalently: there is no polymorphism on types within packaged signatures). So, there is still a need for a separate notion of functors. -- Alain ------------------- 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