Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "François Pottier" <francois.pottier@inria.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] opening a module within a class definition
Date: Thu, 9 Feb 2017 07:47:21 +0100	[thread overview]
Message-ID: <589C1079.1040704@inria.fr> (raw)
In-Reply-To: <CAFrFfuEcfPEnvY8GZTVNg-JfrtSCk8S5pfsVn=GYqZq5pOZ17Q@mail.gmail.com>

Le 09/02/2017 02:57, Martin DeMello a écrit :
> Is this possible? I couldn't find the right syntax to do it if so.

I don't think so. The best workaround I can think of is to wrap
your class in an "include struct", like this:

include struct
   open My_module
   class foo =
     ...
   end
end

I hope this helps,

--
François Pottier
francois.pottier@inria.fr
http://gallium.inria.fr/~fpottier/

  reply	other threads:[~2017-02-09  6:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-09  1:57 Martin DeMello
2017-02-09  6:47 ` François Pottier [this message]
2017-02-09 10:04   ` Martin DeMello

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=589C1079.1040704@inria.fr \
    --to=francois.pottier@inria.fr \
    --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