Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Markus Mottl <markus.mottl@gmail.com>
To: Alain Frisch <alain@frisch.fr>
Cc: OCaml List <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] First-class modules in functor bodies
Date: Mon, 20 May 2013 10:01:27 -0400	[thread overview]
Message-ID: <CAP_800p7HeOHzBeBGzo9U-aEOy2LrANBx1_34+9U-Lxr-G6u5Q@mail.gmail.com> (raw)
In-Reply-To: <5199D14E.5000205@frisch.fr>

On Mon, May 20, 2013 at 3:31 AM, Alain Frisch <alain@frisch.fr> wrote:
> Here is an counter-example provided by Didier Rémy:
[snip]
>     module F(U:sig end) =
>      (val (if !b then (module X1 : X) else (module X2 : X)) : X)

Ah, yeah, that's evil.  It's funny that even after years of using
OCaml the applicative nature of functors sometimes surprises me.  I
admit to having done some SML in my youth, but I thought I was clean
by now :)

--
Markus Mottl        http://www.ocaml.info        markus.mottl@gmail.com

  reply	other threads:[~2013-05-20 14:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-19 15:14 Markus Mottl
2013-05-19 23:07 ` Philippe Wang
2013-05-20  0:26   ` Markus Mottl
2013-05-20  7:31 ` Alain Frisch
2013-05-20 14:01   ` Markus Mottl [this message]
2013-05-20 14:07     ` Jacques Carette

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=CAP_800p7HeOHzBeBGzo9U-aEOy2LrANBx1_34+9U-Lxr-G6u5Q@mail.gmail.com \
    --to=markus.mottl@gmail.com \
    --cc=alain@frisch.fr \
    --cc=caml-list@yquem.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