From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 110987EE4A for ; Tue, 17 Sep 2013 15:49:56 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of edwin+ml-ocaml@etorok.net) identity=pra; client-ip=176.9.138.55; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="edwin+ml-ocaml@etorok.net"; x-sender="edwin+ml-ocaml@etorok.net"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of edwin+ml-ocaml@etorok.net designates 176.9.138.55 as permitted sender) identity=mailfrom; client-ip=176.9.138.55; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="edwin+ml-ocaml@etorok.net"; x-sender="edwin+ml-ocaml@etorok.net"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of postmaster@mail.etorok.net designates 176.9.138.55 as permitted sender) identity=helo; client-ip=176.9.138.55; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="edwin+ml-ocaml@etorok.net"; x-sender="postmaster@mail.etorok.net"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgQFAF9dOFKwCYo3/2dsb2JhbABBGoMHOMFugRwWdIIlAQEFJxkBATgPCxgJJQ8CRhMIAogDCDanNoRMAQWNeQaONoE4FoQIiTWOSYEvhQGLRIMn X-IPAS-Result: AgQFAF9dOFKwCYo3/2dsb2JhbABBGoMHOMFugRwWdIIlAQEFJxkBATgPCxgJJQ8CRhMIAogDCDanNoRMAQWNeQaONoE4FoQIiTWOSYEvhQGLRIMn X-IronPort-AV: E=Sophos;i="4.90,923,1371074400"; d="scan'208";a="27148892" Received: from mail.etorok.net ([176.9.138.55]) by mail3-smtp-sop.national.inria.fr with ESMTP; 17 Sep 2013 15:49:55 +0200 Received: from [172.30.42.25] (unknown [79.114.59.137]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.etorok.net (Postfix) with ESMTPSA id 23BCB46D8 for ; Tue, 17 Sep 2013 15:49:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=etorok.net; s=mailout; t=1379425792; bh=LUBReWA99mdIoWKxISfvUoHl0SXTKGO20Y/D4LFiKx8=; l=775; h=Date:From:To:References:In-Reply-To:From; b=Pe+ZR7fKm1qzVceldE5nCsZ67mH0jd258IIOM/Fmd+T41qi39hcbtkM7CKh2y+V97 Wu0ItkjgPHAvOe0i+1/ca5T5lz5Gu7v0ESF7B8myBrA5nqUqLirCveBapalfAvvbJ9 0F900uo3BWQZHG+3IHuDfTfimyK2awZA4iUf2n1I= Message-ID: <52385DFF.40806@etorok.net> Date: Tue, 17 Sep 2013 16:49:51 +0300 From: =?ISO-8859-1?Q?T=F6r=F6k_Edwin?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130821 Icedove/17.0.8 MIME-Version: 1.0 To: caml-list@inria.fr References: <52385142.7030402@etorok.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97.8 at mail X-Virus-Status: Clean Subject: Re: [Caml-list] duplicate labels On 09/17/2013 04:09 PM, Gabriel Scherer wrote: > I think this is also related to > http://caml.inria.fr/mantis/view.php?id=6070 > > Note that enabling warning 27 (non-suspicious unused variables) also solves this issue: > > % ocaml -w +27 > OCaml version 4.00.1 > > # let foo ~x ~x () = x;; > Warning 27: unused variable x. > val foo : x:'a -> x:'b -> unit -> 'b = I thought that is just because I don't use x in the function, but you are right it warns even if I use x and I have the duplicate label: # let foo ~x ~x () = x;; Warning 27: unused variable x. val foo : x:'a -> x:'b -> unit -> 'b = I think thats good enough for me now, I'll pay more attention to the unused variable warning. Best regards, --Edwin