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=none 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 0D5A9BC6B for ; Fri, 29 Jun 2007 17:57:03 +0200 (CEST) Received: from looneymail-a4.g.dreamhost.com (lax-green-bigip-5.dreamhost.com [208.113.200.5]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5TFv2bq023190 for ; Fri, 29 Jun 2007 17:57:02 +0200 Received: from [192.168.101.117] (unknown [66.84.219.53]) by looneymail-a4.g.dreamhost.com (Postfix) with ESMTP id 2DC6A125FF0 for ; Fri, 29 Jun 2007 08:56:56 -0700 (PDT) Message-ID: <46852BBD.3020407@fischerventure.com> Date: Fri, 29 Jun 2007 10:56:45 -0500 From: Robert C Fischer Reply-To: Caml List Organization: Fischer Venture Managment Corporation User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: Caml List Subject: Re: [Caml-list] let int = ?([' ' '\t'] '-') digits+ References: <200706291639.39529.jon@ffconsultancy.com> In-Reply-To: <200706291639.39529.jon@ffconsultancy.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 46852BCE.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml's:01 lexer:01 wrote:01 caml-list:01 int:01 let:03 '-':07 mean:08 mean:08 rather:08 handled:09 fischer:10 idea:13 robert:13 robert:13 How would I write f - 1 to mean "one less than the value of f"? ~~ Robert. Jon Harrop wrote: > If OCaml's lexer handled numbers of this format, would it be possible to > write: > > f -1 -2 > > to mean: > > f (-1) (-2) > > rather than: > > f - 1 - 2 > > Is this a good idea? > >