From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 6D09FBBAF; Wed, 16 Jun 2010 20:41:00 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArIAABO4GExCbwQZkWdsb2JhbACeaxUBAQEBCQsKBxEEHsBCBYUag1Y X-IronPort-AV: E=Sophos;i="4.53,427,1272837600"; d="scan'208";a="53268315" Received: from out1.smtp.messagingengine.com ([66.111.4.25]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 16 Jun 2010 20:40:54 +0200 Received: from compute2.internal (compute2.internal [10.202.2.42]) by gateway1.messagingengine.com (Postfix) with ESMTP id AEE99F7B7C; Wed, 16 Jun 2010 14:40:53 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Wed, 16 Jun 2010 14:40:53 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=message-id:date:from:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; s=smtpout; bh=4o8UywnCBXopRjY2v/OvMV9cXYU=; b=AqOzZ2JEyLqOKiHu49/ONet15+lP8AWC60Nd0MS5C+IGr5nbOMwGYzA8PYav5KHIoZe/Lf31ZHWjZRLQEl5ThDIp+bQoiW5Uwdbabg4oLs1Hll/POaDv8gaz28qi67PWBKzT8LzXHZ/azSWc6tmCjB6CGFWZ/kX2Bs2fQinYP/w= X-Sasl-enc: 5qpHR3MdODIrR/xpI9OyoWvGbkMD46C0wF8tinrZJw+V 1276713653 Received: from [192.168.1.61] (64-71-1-162.static.wiline.com [64.71.1.162]) by mail.messagingengine.com (Postfix) with ESMTPSA id 22A3F55E92; Wed, 16 Jun 2010 14:40:53 -0400 (EDT) Message-ID: <4C191AB3.9080905@ens-lyon.org> Date: Wed, 16 Jun 2010 11:40:51 -0700 From: Martin Jambon User-Agent: Thunderbird 2.0.0.22 (X11/20090908) MIME-Version: 1.0 To: Yoann Padioleau Cc: Damien Doligez , caml users Subject: Re: [Caml-list] OCaml 3.12.0+beta1 References: <26E62050-5666-43D5-A053-616EA7F0F727@wanadoo.fr> In-Reply-To: <26E62050-5666-43D5-A053-616EA7F0F727@wanadoo.fr> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; ens-lyon:01 ocaml:01 damien:01 ocaml:01 lbl:01 lbl:01 doligez:01 wrote:01 wrote:01 pat:01 pat:01 caml-list:01 grep:01 jambon:01 jambon:01 Yoann Padioleau wrote: > On Jun 16, 2010, at 6:07 AM, Damien Doligez wrote: > >> Dear OCaml users, > > [...] > >> - Record patterns of the form { lbl = pat; _ } to mark that not all >> labels are listed, purposefully. (See new warning below.) > > This is cool. Thank you! Does it have to be '_' only ? Can we write also { lbl = pat; _XXX } ? > It's just that _XXX is easier to grep. I'm guessing that it would be interpreted as { lbl = pat; _XXX = _XXX }. Martin -- http://mjambon.com/