From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id B0BEABCAE for ; Thu, 30 Jun 2005 19:24:24 +0200 (CEST) Received: from justus.rz.uni-saarland.de (justus.rz.uni-saarland.de [134.96.7.31]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j5UHOO1x021330 for ; Thu, 30 Jun 2005 19:24:24 +0200 Received: from cs.uni-sb.de (cs.uni-sb.de [134.96.254.254]) by justus.rz.uni-saarland.de (8.12.10/8.12.10) with ESMTP id j5UHONr55618876 for ; Thu, 30 Jun 2005 19:24:23 +0200 (CEST) Received: from mail.cs.uni-sb.de (mail.cs.uni-sb.de [134.96.254.200]) by cs.uni-sb.de (8.13.4/2005033000) with ESMTP id j5UHOMuv001098 for ; Thu, 30 Jun 2005 19:24:22 +0200 (CEST) Received: from ps.uni-sb.de (grizzly.ps.uni-sb.de [134.96.186.68]) by mail.cs.uni-sb.de (8.13.4/2005060800) with ESMTP id j5UHOMQ5027863 for ; Thu, 30 Jun 2005 19:24:22 +0200 (CEST) X-Authentication-Warning: mail.cs.uni-sb.de: Host grizzly.ps.uni-sb.de [134.96.186.68] claimed to be ps.uni-sb.de Received: from [134.96.186.172] (groove.ps.uni-sb.de [134.96.186.172]) by ps.uni-sb.de (8.12.10/8.12.10) with ESMTP id j5UHOLJU015962; Thu, 30 Jun 2005 19:24:21 +0200 Message-ID: <42C42AC4.7080900@ps.uni-sb.de> Date: Thu, 30 Jun 2005 19:24:20 +0200 From: Andreas Rossberg User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] bizarre type References: <42C4228D.3080000@ps.uni-sb.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.1 (justus.rz.uni-saarland.de [134.96.7.31]); Thu, 30 Jun 2005 19:24:23 +0200 (CEST) X-AntiVirus: checked by AntiVir Milter 1.0.6; AVE 6.31.0.7; VDF 6.31.0.130 X-Miltered: at nez-perce with ID 42C42AC8.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; rossberg:01 rossberg:01 caml-list:01 val:01 wrote:01 uni-sb:01 uni-sb:01 abstract:01 arbitrary:01 andreas:01 andreas:01 int:01 int:01 inferred:02 unit:03 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: Julien Verlaguet wrote: > > But if I write : > > # type 'a t;; > type 'a t > > # let g (x : 'a t list) (y : 'a)=();; > val g : 'a t list -> 'a -> unit = > > # g ([] : int t list);; > - : int -> unit = > > If I understood well what you just said the inferred type should be : > > '_a -> unit In this case, t is fully abstract. So int t is only equivalent to itself, and not to arbitrary x t. -- Andreas Rossberg, rossberg@ps.uni-sb.de Let's get rid of those possible thingies! -- TB