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=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id E423CBC69 for ; Fri, 23 Nov 2007 10:33:33 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAN4sRkfAbSoIh2dsb2JhbACPNgEBAQgKKQ X-IronPort-AV: E=Sophos;i="4.21,455,1188770400"; d="scan'208";a="19598302" Received: from einhorn.in-berlin.de ([192.109.42.8]) by mail4-smtp-sop.national.inria.fr with ESMTP; 23 Nov 2007 10:33:33 +0100 X-Envelope-From: oliver@first.in-berlin.de X-Envelope-To: Received: from einhorn.in-berlin.de (localhost [127.0.0.1]) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id lAN9XWqD030607 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 23 Nov 2007 10:33:32 +0100 Received: (from www-data@localhost) by einhorn.in-berlin.de (8.13.6/8.13.6/Submit) id lAN9XWpc030605 for caml-list@yquem.inria.fr; Fri, 23 Nov 2007 10:33:32 +0100 X-Authentication-Warning: einhorn.in-berlin.de: www-data set sender to oliver@first.in-berlin.de using -f Received: from dslb-088-073-117-022.pools.arcor-ip.net (dslb-088-073-117-022.pools.arcor-ip.net [88.73.117.22]) by webmail.in-berlin.de (IMP) with HTTP for ; Fri, 23 Nov 2007 10:33:32 +0100 Message-ID: <1195810412.47469e6c3fbe9@webmail.in-berlin.de> Date: Fri, 23 Nov 2007 10:33:32 +0100 From: Oliver Bandel To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Type issue References: <2921298.1195790493072.JavaMail.jtbryant@valdosta.edu> In-Reply-To: <2921298.1195790493072.JavaMail.jtbryant@valdosta.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.6 X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 X-Spam: no; 0.00; bandel:01 in-berlin:01 bool:01 bool:01 hen:98 oliver:01 oliver:01 rec:01 typing:01 caml-list:01 cond:02 cond:02 match:02 let:03 ciao:11 Zitat von Jonathan T Bryant : > List, > > I don't understand the following typing: > > # type 'a t = Cond of bool t * 'a t * 'a t | Value of 'a;; > type 'a t = Cond of bool t * 'a t * 'a t | Value of 'a > > # let rec f t = match t with > Cond (c,t,e) -> if f c then f t else f e [...] if [bool] then [bool] else [bool] You have fixed the type here, because you have coupled them together. Ciao, Oliver