From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: ** X-Spam-Status: No, score=2.3 required=5.0 tests=AWL,DNS_FROM_RFC_POST, SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 6D4A2BBAF for ; Thu, 9 Apr 2009 12:21:21 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkgBAClp3UlIDtycimdsb2JhbACVZz8BAQEKCQwHDwWnS4EJkAwBAwEDg3gGh0I X-IronPort-AV: E=Sophos;i="4.40,159,1238968800"; d="scan'208";a="25944626" Received: from fg-out-1718.google.com ([72.14.220.156]) by mail3-smtp-sop.national.inria.fr with ESMTP; 09 Apr 2009 12:21:21 +0200 Received: by fg-out-1718.google.com with SMTP id 22so156784fge.2 for ; Thu, 09 Apr 2009 03:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=pxGTycazH27vO6QfWHdr1pvlPzUJH2Jj++XBT75PqZg=; b=fzqJKoGK3WUnueL7Fgze0H8ImTLZCp9I4YqRDOaMXTez60vPe0np/magtdT7FegbYz ZEPcu2yxgKWfk0IwDkb2HOIOYusjwjFCqeNsw0kx2lDzBDT5xAAyouNANc5sRc2sY+RT 3sI1RoiqhjNGYfCRF4Lq7E9a4rEBwVAedfj3Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=DOvUF0RFDmV+bU1cS+Ro/JfIxAiLmOjcKztvS2bzCPuwrnUenlOhwFOhMDtr21JGGz c1hmNCq3imEBdWNCwIqzIv3se/HqLjEqj1znVrmWRKzHZUe32cb+Qfd5DcGB9uu7PjsC BLZuzUzWz322Bj83p/yHVLtiLPogOhGLtt5MM= Received: by 10.86.50.8 with SMTP id x8mr239122fgx.1.1239272481017; Thu, 09 Apr 2009 03:21:21 -0700 (PDT) Received: from ?192.168.21.130? ([91.202.164.106]) by mx.google.com with ESMTPS id 12sm514093fgg.22.2009.04.09.03.21.20 (version=SSLv3 cipher=RC4-MD5); Thu, 09 Apr 2009 03:21:20 -0700 (PDT) Subject: Re: [Caml-list] class type param constraint From: Radzevich Belevich To: Jacques Garrigue Cc: caml-list@inria.fr In-Reply-To: <20090409.191306.169484516.garrigue@math.nagoya-u.ac.jp> References: <1239266526.2787.5.camel@serphost.localdomain> <20090409.191306.169484516.garrigue@math.nagoya-u.ac.jp> Content-Type: text/plain Date: Thu, 09 Apr 2009 14:21:21 +0400 Message-Id: <1239272481.2787.11.camel@serphost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; subtyping:01 2009:98 wrote:01 caml-list:01 constraint:01 constraint:01 arbitrary:02 confusing:02 garrigue:03 jacques:03 converted:04 thu:05 indeed:07 target:91 mean:08 On Thu, 2009-04-09 at 19:13 +0900, Jacques Garrigue wrote: > This may be a bit confusing, but the .. in your constraint on 'c means > that no actual subtyping will occur when you use this type as target. > Indeed, if the constraint was left unchanged, it would mean that by > choosing an arbitrary instance, you could use the as_c method to > convert an object of type "t a" to any "t". Why it can't be converted to any valid "t"?