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.5 required=5.0 tests=AWL,RCVD_NUMERIC_HELO, SPF_SOFTFAIL,UNPARSEABLE_RELAY 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 59581BB84 for ; Wed, 28 Jan 2009 15:27:15 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkgCAD/6f0mEpqxqnGdsb2JhbACJGopYHAEBAQEBCAsICRFNtwqFRwaCUw X-IronPort-AV: E=Sophos;i="4.37,338,1231110000"; d="scan'208";a="22144923" Received: from cirse-out.extra.cea.fr ([132.166.172.106]) by mail3-smtp-sop.national.inria.fr with ESMTP; 28 Jan 2009 15:27:15 +0100 Received: from nephilia.intra.cea.fr (nephilia.intra.cea.fr [132.166.88.33]) by cirse.extra.cea.fr (8.14.2/8.14.2/CEAnet-Internet-out-1.2) with ESMTP id n0SERELN003627; Wed, 28 Jan 2009 15:27:14 +0100 Received: from muguet1.intra.cea.fr (muguet1.intra.cea.fr [132.166.192.6]) by nephilia.intra.cea.fr (8.13.8/8.13.8) with ESMTP id n0SEREC1032055; Wed, 28 Jan 2009 15:27:14 +0100 (envelope-from julien.signoles@cea.fr) Received: from mansart.intra.cea.fr (mansart.intra.cea.fr [132.166.88.54]) by muguet1.intra.cea.fr (8.13.8/8.13.8/CEAnet-Intranet-out-1.1) with ESMTP id n0SEREpN018287; Wed, 28 Jan 2009 15:27:14 +0100 Received: from LAXA.intra.cea.fr ([132.166.64.44]) by mansart.intra.cea.fr with Microsoft SMTPSVC(6.0.3790.3959); Wed, 28 Jan 2009 15:27:14 +0100 Received: from 132.166.135.80 ([132.166.135.80]) by LAXA.intra.cea.fr ([132.166.64.53]) with Microsoft Exchange Server HTTP-DAV ; Wed, 28 Jan 2009 14:27:13 +0000 Received: from is005140 by LAXA.intra.cea.fr; 28 Jan 2009 15:28:16 +0100 Subject: Re: [Caml-list] Warning wished From: Julien SIGNOLES To: Dmitri Boulytchev Cc: caml-list In-Reply-To: <49806746.9030507@tepkom.ru> References: <1233150828.7199.213.camel@localhost> <49806746.9030507@tepkom.ru> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: CEA LIST Date: Wed, 28 Jan 2009 15:28:16 +0100 Message-Id: <1233152896.7199.232.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 X-OriginalArrivalTime: 28 Jan 2009 14:27:14.0250 (UTC) FILETIME=[83A2F2A0:01C98154] X-Spam: no; 0.00; signoles:01 signoles:01 emits:01 polymorphic:01 integer:01 caml-list:01 cea:01 int:01 caml:02 unit:03 function:08 julien:12 julien:12 definitely:12 definitely:12 Hello Dmitri, > no warning should be issued in this case since you have polymorphic > function: > applying g to () you will definitely have f x of type unit :) Applying g to 1 you will definitely have f x of type int and you have to take care of the returned integer. Unfortunatly caml emits no warning in this case (even if I understand why) :(. -- Julien