From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p2U916kp001108 for ; Wed, 30 Mar 2011 11:01:06 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAPvvkk1auLfF/2dsb2JhbACmQ710hWoEkFsagxI X-IronPort-AV: E=Sophos;i="4.63,267,1299452400"; d="scan'208";a="79463425" Received: from 0405ds1-vaer.0.fullrate.dk (HELO fw.fugmann.net) ([90.184.183.197]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 30 Mar 2011 11:01:01 +0200 Received: from [10.0.1.53] (unknown [87.54.60.37]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by fw.fugmann.net (Postfix) with ESMTPSA id CB03CCED23; Wed, 30 Mar 2011 11:00:58 +0200 (CEST) Message-ID: <4D92F0EF.6030105@fugmann.net> Date: Wed, 30 Mar 2011 10:59:27 +0200 From: Anders Fugmann User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110303 Iceowl/1.0b1 Icedove/3.0.11 MIME-Version: 1.0 To: Dmitry Bely CC: caml-list References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Caml-list] first class modules: differences in 3.12 vs 3.13? Hi Dmitry, On 03/30/2011 10:02 AM, Dmitry Bely wrote: > On Wed, Mar 30, 2011 at 11:57 AM, Joel Reymont wrote: >> I get an error on this with 3.12 but no error with 3.13.0+dev2 (2010-10-22). >> >> let _ = Simple.main (module Client) (module Server) (module Config) >> >> Why? I thought 3.12 supported first-class modules. > > I believe module types are a must: > > let _ = Simple.main (module Client : CLIENT) (module Server : SERVER) > (module Config : CONFIG) I tried this using 3.12, and the compiler now complains that: Error: Unbound module type CLIENT (I'm using the same code base as Joel Reymont) If the names in capital letters just arbitrary names? btw. ocamldep accepted the code above just fine. > > - Dmitry Bely > Regards Anders Fugmann