From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 48C6A7F0BA for ; Thu, 9 Feb 2017 07:47:22 +0100 (CET) X-IronPort-AV: E=Sophos;i="5.35,349,1484002800"; d="scan'208";a="259489634" Received: from bou78-2-82-240-46-163.fbx.proxad.net (HELO MP-41019.local) ([82.240.46.163]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 09 Feb 2017 07:47:22 +0100 To: caml-list@inria.fr References: From: =?UTF-8?Q?Fran=c3=a7ois_Pottier?= Message-ID: <589C1079.1040704@inria.fr> Date: Thu, 9 Feb 2017 07:47:21 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Caml-list] opening a module within a class definition 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/