From: Martin DeMello <martindemello@gmail.com>
To: "François Pottier" <francois.pottier@inria.fr>
Cc: "caml-list@inria.fr" <caml-list@inria.fr>
Subject: Re: [Caml-list] opening a module within a class definition
Date: Thu, 9 Feb 2017 02:04:25 -0800 [thread overview]
Message-ID: <CAFrFfuF4Xu2eNuQViTb96JJVF4rbL_cbqcHD-RiDfomWiq1gxQ@mail.gmail.com> (raw)
In-Reply-To: <589C1079.1040704@inria.fr>
[-- Attachment #1: Type: text/plain, Size: 828 bytes --]
Thanks, I'll play with that.
martin
On Wed, Feb 8, 2017 at 10:47 PM, François Pottier <francois.pottier@inria.fr
> wrote:
> 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/
>
> --
> Caml-list mailing list. Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
[-- Attachment #2: Type: text/html, Size: 1849 bytes --]
prev parent reply other threads:[~2017-02-09 10:04 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
2017-02-09 10:04 ` Martin DeMello [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=CAFrFfuF4Xu2eNuQViTb96JJVF4rbL_cbqcHD-RiDfomWiq1gxQ@mail.gmail.com \
--to=martindemello@gmail.com \
--cc=caml-list@inria.fr \
--cc=francois.pottier@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