From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p4N8lPJc017355 for ; Mon, 23 May 2011 10:47:25 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsECACke2k3RVdW2kGdsb2JhbACEXJNKjXQIFAEBAQEJCQ0HFAQiiHCde4tfPII1g1g3iGIBAQMGgSWDZ4EHBIZKiUeLBTuDOA X-IronPort-AV: E=Sophos;i="4.65,255,1304287200"; d="scan'208";a="95195388" Received: from mail-yx0-f182.google.com ([209.85.213.182]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 23 May 2011 10:47:19 +0200 Received: by yxl31 with SMTP id 31so3151284yxl.27 for ; Mon, 23 May 2011 01:47:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=72rCrPltGp8aAebAG1qYGwty/OkybwQFb5JqEppvsGM=; b=xYfBrSmShiV3/YkxcRCMxp8UFUqKo0Z6S4AbFh423noZGweLDkhYDDRYJzZrI5G7lh yqhOPRkFLWF/Rvv9GjAcFzd1a8yy8tvq4Q64X50y1wdRXBcM4L0s7vL8o98to7tawFAv QJxwiQrXnd1ZkStRDbZvTi7rlx/x9pgOSD/VY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=GaRvgPuT4BIbD2219v5nN8uQkHPBGl31F0lpnBm8gfVJuXuILljvrGcDFhYkspLeRd /wQYRFbDcS/Pux8vWkQ2rl0mJz7FqxBtZ5uyJk1fpdx3/H+2wkPVQtSVurBiBo09teMe UnnIXzVV78JD53hOr9K7DTBs8ahyETQ8Q1ivA= MIME-Version: 1.0 Received: by 10.150.237.9 with SMTP id k9mr2506931ybh.48.1306140000550; Mon, 23 May 2011 01:40:00 -0700 (PDT) Received: by 10.151.6.21 with HTTP; Mon, 23 May 2011 01:40:00 -0700 (PDT) In-Reply-To: <4DDA1AD1.9070606@gmail.com> References: <4DDA1AD1.9070606@gmail.com> Date: Mon, 23 May 2011 11:40:00 +0300 Message-ID: From: Dmitry Grebeniuk To: caml-list@inria.fr Content-Type: text/plain; charset=UTF-8 Subject: Re: [Caml-list] ocaml, objects, classes, type ascription, virtual methods Hello. > I'm not sure I understand your question. > > Isn't "inherit" what you want? I don't need to inherit the methods (the class' behaviour), I only need to be sure that types of methods are equal (more precisely, that types of methods of class ext can be constrained by types of methods of class base).