caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: rossberg@mpi-sws.org
To: "Lauri Alanko" <la@iki.fi>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Signature monomorphism in functors
Date: Tue, 18 Jan 2011 11:22:15 +0100 (CET)	[thread overview]
Message-ID: <53719041ffb29ca49b51ce6bb727e4f8.squirrel@mail.mpi-sws.org> (raw)
In-Reply-To: <7f9a42a3cac8ea539f9f48432cd8a5af.squirrel@mail.mpi-sws.org>

I wrote:
>   module F (X : sig val x : int end) =
>   struct
>     val y = 1
>     include X
>     val z = x + y
>   end
>
> Without coercive subtyping semantics, what would be the meaning of:
>
>   module A = F (struct val x = 2 val y = 3 end)

(And my excuses for accidentally mixing Caml with SML syntax. :) Please read
"val" as "let" where appropriate.)

/Andreas


  reply	other threads:[~2011-01-18 10:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-18  2:00 Lauri Alanko
2011-01-18 10:02 ` rossberg
2011-01-18 10:22   ` rossberg [this message]
2011-01-18 12:10   ` Lauri Alanko
2011-01-18 14:03     ` Jacques Garrigue
2011-01-18 16:41     ` rossberg

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=53719041ffb29ca49b51ce6bb727e4f8.squirrel@mail.mpi-sws.org \
    --to=rossberg@mpi-sws.org \
    --cc=caml-list@inria.fr \
    --cc=la@iki.fi \
    /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).