From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr 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 300F6D45F for ; Tue, 1 Nov 2005 09:19:32 +0100 (CET) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.194]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jA18JV50005614 for ; Tue, 1 Nov 2005 09:19:31 +0100 Received: by xproxy.gmail.com with SMTP id s15so1223131wxc for ; Tue, 01 Nov 2005 00:19:31 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nlbmQcMyx4bnxnL+EsmGmCV2IBluOjRr18yq0dYe6xOoF3YzH6VTVV6v38YJoZFfhJzysDSCZkBLeeMAK/IXpiJze7OJ3JmcqC/dLkQRiCTUPz689TCVr65CD/xS5IcqdVX0myA9n8f5QIAs2kLmHVisRnGyRAIq+1ngpT+xrxI= Received: by 10.65.43.15 with SMTP id v15mr909464qbj; Tue, 01 Nov 2005 00:19:30 -0800 (PST) Received: by 10.65.23.20 with HTTP; Tue, 1 Nov 2005 00:19:30 -0800 (PST) Message-ID: Date: Tue, 1 Nov 2005 21:19:30 +1300 From: Jonathan Roewen To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Type inference problem In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Miltered: at nez-perce with ID 43672513.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 inference:01 compiler:01 problem:05 flag:09 bit:10 returns:11 error:13 type:14 type:14 possible:15 there's:16 could:20 when:21 else:21 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.3 Ohh, I found it =3D) If without else, where return type of if is non-unit. Is it possible compiler could flag this error a bit better? IE: when if returns non-unit, and there's no else? Jonathan