From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 609C8BBC4 for ; Sat, 18 Apr 2009 16:23:56 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AosAAJt/6UlCbwQakGdsb2JhbACWOgEBAQEJCQwHEQS2PYN9Bg X-IronPort-AV: E=Sophos;i="4.38,431,1233529200"; d="scan'208";a="27891829" Received: from out2.smtp.messagingengine.com ([66.111.4.26]) by mail1-smtp-roc.national.inria.fr with ESMTP; 18 Apr 2009 16:23:56 +0200 Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id C09E231BF3F; Sat, 18 Apr 2009 10:23:54 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Sat, 18 Apr 2009 10:23:54 -0400 X-Sasl-enc: CbORVlEfbJKXzoDgq0/wCQtRy96GzPhtDKWZ/yZp7I9I 1240064634 Received: from [192.168.1.10] (ALyon-157-1-146-133.w90-42.abo.wanadoo.fr [90.42.153.133]) by mail.messagingengine.com (Postfix) with ESMTPSA id 10E885275A; Sat, 18 Apr 2009 10:23:53 -0400 (EDT) Message-ID: <49E9E195.6030603@ens-lyon.org> Date: Sat, 18 Apr 2009 16:20:05 +0200 From: Martin Jambon User-Agent: Thunderbird 2.0.0.17 (X11/20081008) MIME-Version: 1.0 To: Ashish Agarwal Cc: Peter Hawkins , caml-list@yquem.inria.fr Subject: Re: [Caml-list] Extending modules and signatures References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; ens-lyon:01 mli:01 wrote:01 signatures:01 caml-list:01 int:01 jambon:01 jambon:01 define:02 modules:02 string:02 module:03 module:03 let:03 exists:05 Ashish Agarwal wrote: > This is a commonly requested feature. Ah. > One issue is that a file a.ml > creates a module A. However, a file a.mli does not create > a module type A. I'm not sure why this is the case. Does anyone know if > there is a specific reason? The module type exists, it's just that it doesn't have a name. let x = (123, "abc") does not define "type x = int * string" either. Martin -- http://mjambon.com/