From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 55FF97EFCD for ; Thu, 30 Oct 2014 17:14:11 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of philippe.veber@gmail.com) identity=pra; client-ip=74.125.82.54; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="philippe.veber@gmail.com"; x-sender="philippe.veber@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of philippe.veber@gmail.com designates 74.125.82.54 as permitted sender) identity=mailfrom; client-ip=74.125.82.54; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="philippe.veber@gmail.com"; x-sender="philippe.veber@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-wg0-f54.google.com) identity=helo; client-ip=74.125.82.54; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="philippe.veber@gmail.com"; x-sender="postmaster@mail-wg0-f54.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjcBAKViUlRKfVI2m2dsb2JhbABcDoQsBNUlAoEdBxYBAQEBAREBAQEBAQYLCwkULoQDAQEDARIuARsdAQMBCwYFBAEGAzgiAREBBQEcBhMIGogJAQMJCah/PTGNJYMRiGsKGScNZ4N7AQEBAQEBBAEBAQEBARYBBQ6RAgeESwWTFYpVgTGRBoINGCmDboEEQTwvgksBAQE X-IPAS-Result: AjcBAKViUlRKfVI2m2dsb2JhbABcDoQsBNUlAoEdBxYBAQEBAREBAQEBAQYLCwkULoQDAQEDARIuARsdAQMBCwYFBAEGAzgiAREBBQEcBhMIGogJAQMJCah/PTGNJYMRiGsKGScNZ4N7AQEBAQEBBAEBAQEBARYBBQ6RAgeESwWTFYpVgTGRBoINGCmDboEEQTwvgksBAQE X-IronPort-AV: E=Sophos;i="5.07,286,1413237600"; d="scan'208";a="85448725" Received: from mail-wg0-f54.google.com ([74.125.82.54]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 30 Oct 2014 17:14:10 +0100 Received: by mail-wg0-f54.google.com with SMTP id m15so4664673wgh.27 for ; Thu, 30 Oct 2014 09:14:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=iovC+2jNAQjNMCXrED+rNAUYBLClEcx3LOo6vUEaPMs=; b=T3duh/pKGKXaaJeNWwWu0ol2K+5Uk2YzGNl/JOKlDmAoFOL3zAbpTJeCa1XlwB9cEg 6J2GF+h82xTTU1wwaWcR9+sgBeECSS1WUkEtveB1gcJpJ/nFFM/t63T9IwmIky4U7mWg docT4QpkgCf7E4JQPRrrhn5WSptA5qrnmOGySRpSQ4k99873kDrVQ8r5NQLtC8e2WpJj QMEKIFyqSfBI93CxnLZOIBPcTwyeaACxcLQRaHhBsvz457/SMU2vCRL5vcBGln34BbBG KpcQLibfTXehct17Su2LZDMKR/h0KpDwiHaujRGnd7ewnX5flNAB7VVCnAHKYnnYm3jh aAjw== X-Received: by 10.180.99.1 with SMTP id em1mr10470887wib.29.1414685650265; Thu, 30 Oct 2014 09:14:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.63.237 with HTTP; Thu, 30 Oct 2014 09:13:50 -0700 (PDT) In-Reply-To: <86egtp7d8u.fsf@cam.ac.uk> References: <86y4rxfuus.fsf@cam.ac.uk> <86egtp7d8u.fsf@cam.ac.uk> From: Philippe Veber Date: Thu, 30 Oct 2014 17:13:50 +0100 Message-ID: To: Leo White Cc: caml users Content-Type: multipart/alternative; boundary=f46d0418258aa72e600506a62b6c X-Validation-by: philippe.veber@gmail.com Subject: Re: [Caml-list] Typing of a parameterized class where the type parameter is the type of self. --f46d0418258aa72e600506a62b6c Content-Type: text/plain; charset=ISO-8859-1 OK, thanks a lot Leo. I'll report that on mantis to keep track of that. Cheers, ph. 2014-10-30 17:07 GMT+01:00 Leo White : > > This was an easy way to say that the polymorphism of m was not captured > by 'a. I don't want to abuse your time, but if > > you have a tiny example illustrating when this automatic promotion is > indeed useful, I'd be curious to see it. In any > > case, many thanks for the fix, which I'll use right away. > > I think that the automatic promotion is just for convenience to avoid > writing "'a . ..." on lots of methods. Your example should probably be > considered a bug since the promotion should really only happen when the > method type is genuinely polymorphic, but I don't know how easy it is to > fix. > > Regards, > > Leo > --f46d0418258aa72e600506a62b6c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
OK, thanks a lot Leo. I'll report that on mantis to ke= ep track of that.
Cheers,
=A0 ph.


2014-10-30 17:07 GMT+01:00 Leo White <lp= w25@cam.ac.uk>:
> This was an easy way to say that the polymorphism of m was not c= aptured by 'a. I don't want to abuse your time, but if
> you have a tiny example illustrating when this automatic promotion is = indeed useful, I'd be curious to see it. In any
> case, many thanks for the fix, which I'll use right away.

I think that the automatic promotion is just for convenience to avoi= d
writing "'a . ..." on lots of methods. Your example should pr= obably be
considered a bug since the promotion should really only happen when the
method type is genuinely polymorphic, but I don't know how easy it is t= o
fix.

Regards,

Leo

--f46d0418258aa72e600506a62b6c--