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 6805EBB81 for ; Tue, 7 Dec 2004 15:57:18 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id iB7EvInJ024819 for ; Tue, 7 Dec 2004 15:57:18 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA30967 for ; Tue, 7 Dec 2004 15:57:17 +0100 (MET) Received: from janus.rz.uni-saarland.de (janus.rz.uni-saarland.de [134.96.7.10]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id iB7EvHU8010348 for ; Tue, 7 Dec 2004 15:57:17 +0100 Received: from cs.uni-sb.de (cs.uni-sb.de [134.96.254.254]) by janus.rz.uni-saarland.de (8.12.10/8.12.10) with ESMTP id iB7EvEhi23399281 for ; Tue, 7 Dec 2004 15:57:15 +0100 (CET) Received: from mail.cs.uni-sb.de (mail.cs.uni-sb.de [134.96.254.200]) by cs.uni-sb.de (8.13.1/2004111100) with ESMTP id iB7EvEmc020664 for ; Tue, 7 Dec 2004 15:57:14 +0100 (CET) Received: from ps.uni-sb.de (grizzly.ps.uni-sb.de [134.96.186.68]) by mail.cs.uni-sb.de (8.13.1/2004093000) with ESMTP id iB7EvDfL029036 for ; Tue, 7 Dec 2004 15:57:13 +0100 (CET) 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 ps.uni-sb.de (groove.ps.uni-sb.de [134.96.186.172]) by ps.uni-sb.de (8.12.10/8.12.10) with ESMTP id iB7EvCCf017516 for ; Tue, 7 Dec 2004 15:57:12 +0100 Message-ID: <41B5C4C8.9040701@ps.uni-sb.de> Date: Tue, 07 Dec 2004 15:57:12 +0100 From: Andreas Rossberg User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031114 X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml users Subject: Re: [Caml-list] Type constraints References: <20041206195527.GA32094@draco.skynet> <41B557D4.2000306@inria.fr> <076FEF06-4856-11D9-8195-000D9345235C@inria.fr> In-Reply-To: <076FEF06-4856-11D9-8195-000D9345235C@inria.fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.1 (janus.rz.uni-saarland.de [134.96.7.10]); Tue, 07 Dec 2004 15:57:15 +0100 (CET) X-AntiVirus: checked by AntiVir Milter 1.0.6; AVE 6.28.0.19; VDF 6.28.0.108 X-Miltered: at nez-perce with ID 41B5C4CE.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 41B5C4CD.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; rossberg:01 rossberg:01 caml-list:01 damien:01 wrote:01 frisch:01 wrote:01 sig:01 val:01 struct:01 struct:01 uni-sb:01 uni-sb:01 polymorphic:01 polymorphic:01 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.0 X-Spam-Level: Damien Doligez wrote: > On 7 Dec 2004, at 08:12, Alain Frisch wrote: > >> Btw, does someone know why in >> >> # let module M : sig val v: 'a -> 'a end = struct let v x = x end in >> M.v;; >> - : '_a -> '_a = >> >> the type variable is not generalized ? > > Consider this: > > let module M = struct let v = ref end in M.v;; Is this really a counter-example? I don't see any problem with making it polymorphic - it evaluates to ref, and ref can happily be polymorphic. - Andreas -- Andreas Rossberg, rossberg@ps.uni-sb.de Let's get rid of those possible thingies! -- TB