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 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id C1467BC6B for ; Fri, 29 Jun 2007 18:34:57 +0200 (CEST) Received: from looneymail-a5.g.dreamhost.com (lax-green-bigip-5.dreamhost.com [208.113.200.5]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5TGYuYi025913 for ; Fri, 29 Jun 2007 18:34:57 +0200 Received: from [192.168.101.117] (unknown [66.84.219.53]) by looneymail-a5.g.dreamhost.com (Postfix) with ESMTP id CBDEC122430 for ; Fri, 29 Jun 2007 09:34:55 -0700 (PDT) Message-ID: <468534CB.1090202@fischerventure.com> Date: Fri, 29 Jun 2007 11:35:23 -0500 From: Robert C Fischer 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> <1183132646.25733.106.camel@nyc-qws-001.delacy.com> In-Reply-To: <1183132646.25733.106.camel@nyc-qws-001.delacy.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at discorde with ID 468534B0.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; 0100,:01 ocaml's:01 lexer:01 beginner's:01 ocaml:01 bug:01 beginners:01 wrote:01 wrote:01 caml-list:01 caml-list:01 int:01 bin:01 caml:02 caml:02 This got filtered out, I think, so I'm trying again: How would one express "one less than the value returned by function f" if f -1 was treated as f(-1)? ~~ Robert. pzimmer@janestcapital.com wrote: > Do you really want > > x-3*7 > > to be interpreted as > > (x (-3)) * 7 > > ? > > > On Fri, 2007-06-29 at 16:39 +0100, 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? >> >> > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > >