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=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 1EF14BC6B for ; Fri, 29 Jun 2007 18:45:56 +0200 (CEST) Received: from ptb-relay03.plus.net (ptb-relay03.plus.net [212.159.14.214]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5TGjtb9001212 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 29 Jun 2007 18:45:55 +0200 Received: from [80.229.56.224] (helo=beast.local) by ptb-relay03.plus.net with esmtp (Exim) id 1I4JbW-0003DI-Ct for caml-list@inria.fr; Fri, 29 Jun 2007 17:45:55 +0100 From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: Caml List Subject: Re: [Caml-list] let int = ?([' ' '\t'] '-') digits+ Date: Fri, 29 Jun 2007 17:40:06 +0100 User-Agent: KMail/1.9.7 References: <200706291639.39529.jon@ffconsultancy.com> <46852BBD.3020407@fischerventure.com> In-Reply-To: <46852BBD.3020407@fischerventure.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706291740.06735.jon@ffconsultancy.com> X-Miltered: at concorde with ID 46853743.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; regexp:01 regexp:01 ocaml:01 ocaml:01 frog:98 wrote:01 caml-list:01 int:01 match:02 match:02 let:03 digit:06 space:07 space:07 '-':07 On Friday 29 June 2007 16:56:45 Robert C Fischer wrote: > How would I write f - 1 to mean "one less than the value of f"? As: f - 1 The space before the digit means that it will not match this regexp. Or: f-1 The lack of a space before the "-" means that it will not match this regexp. -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. The OCaml Journal http://www.ffconsultancy.com/products/ocaml_journal/?e