caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Michael Grünewald" <michaelgrunewald@yahoo.fr>
To: Gabriel Scherer <gabriel.scherer@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Deleting a type alias while including a module
Date: Fri, 25 Nov 2011 07:52:12 +0100	[thread overview]
Message-ID: <4ECF3B1C.8040907@yahoo.fr> (raw)
In-Reply-To: <CAPFanBGrmpY5k6WmdAU_o8YzjDa_N_0HU+NvhvaN1EiYa8RpQw@mail.gmail.com>

Hello Gabriel,

thank you for your much useful answer!

Gabriel Scherer wrote:
> When you seal a module with a signature that has an abstract type (the
> type ('a xarray) in the XARRAY signature), you get a "fresh" abstract
> type is a result.
I think I did not analyse adequately the situation because I overlooked 
the fact you pinpoint here.  I thought I knew this, but I probably 
implicitly assumed that the result of `module type of XArray` (my 
original code used this)  was annotated with concrete type definitions.  
But it does not work like this, and it is not expected to do so!

As you might guess I am now trying out the new features of OCaml 3.11, 
and the `include module type of` mantra together with destructive 
substitution in signatures is makes the implementation of inheritance 
mechanisms for modules much easier.  Something else I am very excited 
about is first class modules!

Best Regards,
Michael


      reply	other threads:[~2011-11-25  6:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-24 16:35 Michael Grünewald
2011-11-24 19:33 ` Michael Grünewald
2011-11-24 23:53   ` Gabriel Scherer
2011-11-25  6:52     ` Michael Grünewald [this message]

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=4ECF3B1C.8040907@yahoo.fr \
    --to=michaelgrunewald@yahoo.fr \
    --cc=caml-list@inria.fr \
    --cc=gabriel.scherer@gmail.com \
    /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).