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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 39A247EE25 for ; Wed, 5 Jun 2013 09:04:54 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of lambda.q.q@gmail.com) identity=pra; client-ip=209.85.217.172; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="lambda.q.q@gmail.com"; x-sender="lambda.q.q@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of lambda.q.q@gmail.com designates 209.85.217.172 as permitted sender) identity=mailfrom; client-ip=209.85.217.172; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="lambda.q.q@gmail.com"; x-sender="lambda.q.q@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-lb0-f172.google.com) identity=helo; client-ip=209.85.217.172; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="lambda.q.q@gmail.com"; x-sender="postmaster@mail-lb0-f172.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AusAAOjhrlHRVdmsm2dsb2JhbABahi69NRYOAQEBAQEGCwsJFCiCIwEBBAEnEwYBOAEDAQsBBQUhJQ8BBCABBQEiE4d7AwkGBJ5oj0mFFCcNiG8BBQySegOJGo4lj1s/gV2CXQ X-IPAS-Result: AusAAOjhrlHRVdmsm2dsb2JhbABahi69NRYOAQEBAQEGCwsJFCiCIwEBBAEnEwYBOAEDAQsBBQUhJQ8BBCABBQEiE4d7AwkGBJ5oj0mFFCcNiG8BBQySegOJGo4lj1s/gV2CXQ X-IronPort-AV: E=Sophos;i="4.87,804,1363129200"; d="scan'208";a="20353728" Received: from mail-lb0-f172.google.com ([209.85.217.172]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 05 Jun 2013 09:04:53 +0200 Received: by mail-lb0-f172.google.com with SMTP id p10so1545209lbi.3 for ; Wed, 05 Jun 2013 00:04:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=kGeSh6w61Y8U8V8J8oaBkQm8aHNOM7QmKaqgyfKdqXA=; b=EugXm7GjsIUCoZRLFnkhR1vNqYCDz4H8kVA9xczmc+QuuAhgcrhUq/2JqPuSS8VXny qwklV/L95DMJ7Pv2U4MhwdYCedWQFehJy4pndCfAALcqw3VYBKRMn3kg+j5DxkDP0fGj XA1fdMwWGtxRr86adnUXTn5P+YuCfWpIFUgsxcdJF2qUXKsg+Z3qqEKRrTq1+aG2Ag1f 07eAuhU0AMziHwxfrWKWv/y1//7PF5Bm8I0/lCI7qNH6dkjNDA90vMPmgqTOqBW3NJfO XN02aoayQoW4vamnDnaEWqTXjPHVbo0AZLfH33YLJkMMDRxj5ViDtxO6zhqfSIQ8RAMV 2udw== X-Received: by 10.112.89.71 with SMTP id bm7mr2604411lbb.80.1370415892941; Wed, 05 Jun 2013 00:04:52 -0700 (PDT) Received: from golf.niidar.ru.niidar.ru ([109.188.125.208]) by mx.google.com with ESMTPSA id c5sm26491695lbe.1.2013.06.05.00.04.50 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Wed, 05 Jun 2013 00:04:51 -0700 (PDT) Sender: Ivan Gotovchits From: Ivan Gotovchits To: Virgile Prevosto Cc: OCAML References: <87sj0xqgb8.fsf@golf.niidar.ru> Date: Wed, 05 Jun 2013 11:04:46 +0400 In-Reply-To: (Virgile Prevosto's message of "Wed, 5 Jun 2013 08:54:48 +0200") Message-ID: <878v2pqbqp.fsf@golf.niidar.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Caml-list] Warning 28. Virgile Prevosto writes: > OCaml is not complaining about your Ref constructor, but another one > that does not have any argument, but is nevertheless given a wildcard > pattern in the matching, as e.g. None in > the following code: > > # let f default = function > | Some n -> n > | None _ -> default;; > Warning 28: wildcard pattern given as argument to a constant constructor > Indeed, right above there was a true constant constructor with a wildcard, though, for some reason, compiler was wrong in his estimation of the error position, that confused me. Thanks!