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=1.9 required=5.0 tests=AWL,DNS_FROM_RFC_POST, HTML_MESSAGE,SPF_NEUTRAL autolearn=disabled version=3.1.3 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 73837BB84 for ; Fri, 15 Aug 2008 03:23:28 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsMBAJF3pEhA6ba8lGdsb2JhbACCMTCOYT4BAQEBCQMKBxEDnDiGdwEC X-IronPort-AV: E=Sophos;i="4.32,212,1217800800"; d="scan'208";a="16131132" Received: from nf-out-0910.google.com ([64.233.182.188]) by mail1-smtp-roc.national.inria.fr with ESMTP; 15 Aug 2008 03:23:28 +0200 Received: by nf-out-0910.google.com with SMTP id b11so453775nfh.13 for ; Thu, 14 Aug 2008 18:23:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=XkYsUYJG3YQRyLECIUeg1c0dr7YXoc9OmAmzbkHH3d8=; b=AHqpMhmFuDykLd1VVavTG6IVTn1jDfrc7NLbbBKr4IyrtcF2FCTvT0XWqz9z/EEFBe DPYLr4LVGxx3ILY88j5cUjnoeaeL6g/9NiBk4scqjM07xs6H7VqmvsU1nWjqxQTSEXOR OezirGFgFieAV3QYCViEnY/DcUlzjw1RBGQ1Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=unr59QWVQ+YpnVWo7Q+fl8LOsDxsUg5PVjTngKnWQzBCHDwzXnwuxqTE0GrrPJ3G0R BUmvictCiEG8BcrrIfN78ceoYPej9P0jLiGT1zlx0SUzY+lL8a8DOo1V35C2UUnGq8Of fBWYdaHlJ8JflL3qAuegPbgNgR1SzPwcAaHTU= Received: by 10.210.71.12 with SMTP id t12mr2263464eba.146.1218763407653; Thu, 14 Aug 2008 18:23:27 -0700 (PDT) Received: by 10.210.72.8 with HTTP; Thu, 14 Aug 2008 18:23:27 -0700 (PDT) Message-ID: <527cf6bc0808141823q392196c1jaff6f6a7d5b9bcee@mail.gmail.com> Date: Fri, 15 Aug 2008 03:23:27 +0200 From: "blue storm" To: "mohamed iguernelala" Subject: Re: [Caml-list] Multiple value declaration in .mli file Cc: caml-list@yquem.inria.fr In-Reply-To: <186665.42946.qm@web28108.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_86930_31524418.1218763407646" References: <186665.42946.qm@web28108.mail.ukl.yahoo.com> X-Spam: no; 0.00; mli:01 foo:01 baz:01 foo:01 val:01 baz:01 val:01 storm:98 defines:01 defines:01 caml-list:01 declaration:02 blue:96 let:03 let:03 ------=_Part_86930_31524418.1218763407646 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I guess you need it to mirror the value shadowing on the implementation side : include Foo let bar = baz This is legal if Foo already defines bar, and most of the time desired and useful. In the interface file you'll want to write : include FOO (* Foo's signature *) val bar : ... ------=_Part_86930_31524418.1218763407646 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
I guess you need it to mirror the value shadowing on the implementation side :
   include Foo
   let bar = baz

This is legal if Foo already defines bar, and most of the time desired and useful.
In the interface file you'll want to write :
  include FOO (* Foo's signature *)
  val bar : ...

------=_Part_86930_31524418.1218763407646--