caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Francois Berenger <berenger@riken.jp>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] module alias in a .mli file
Date: Mon, 19 Nov 2012 15:36:40 +0900	[thread overview]
Message-ID: <50A9D378.4020403@riken.jp> (raw)
In-Reply-To: <50A9CB66.1020207@ens-lyon.org>

On 11/19/2012 03:02 PM, Martin Jambon wrote:
> On Sun 18 Nov 2012 09:29:31 PM PST, Francois Berenger wrote:
>> Hello,
>>
>> Here is my stupid question of the day:
>> can't I declare the following in a .mli file?
>>
>> module V3 = Vector3
>
> No, because "= Vector3" specifies an implementation.
> An mli file is a module interface, and module interfaces never contain
> implementations.
>
> However, you may want to do this, which does what it says:
>
>   module V3 : module type of Vector3

Thanks a lot! That's exactly what I needed. :)



  reply	other threads:[~2012-11-19  6:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-19  5:29 Francois Berenger
2012-11-19  6:02 ` Martin Jambon
2012-11-19  6:36   ` Francois Berenger [this message]
2012-11-19 10:35     ` David House
2012-11-19 12:44       ` Paolo Donadeo
2012-11-19 15:46         ` Tiphaine Turpin
2012-11-19 14:51           ` David House
2012-11-20  1:38           ` Francois Berenger
2012-11-20  1:57             ` Francois Berenger
2012-11-19  6:03 ` Wojciech Meyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50A9D378.4020403@riken.jp \
    --to=berenger@riken.jp \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).