From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 5F393BB9C for ; Fri, 20 Jan 2006 17:18:26 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id k0KGIPrc000739 for ; Fri, 20 Jan 2006 17:18:26 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA30522 for ; Fri, 20 Jan 2006 17:18:25 +0100 (MET) Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.193]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k0KGIOhY006812 for ; Fri, 20 Jan 2006 17:18:25 +0100 Received: by uproxy.gmail.com with SMTP id q2so55283uge for ; Fri, 20 Jan 2006 08:18:24 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=P3xNeh+gaOY6oWU/aF/oKCQCMwRoEyIRCub6LfFj2VILaSdS+qRlo4Wtq5zEgQV1JBwPjqPM6xjpRnN1XyS+eWrtANWhjZ3RtdZX6sQY6GAzXoDnRcWFIVSWN8Y1mzdmkdAMzmENj5txFptPggO8rTBjHIpEKL0PhXc6ciupFU4= Received: by 10.48.3.10 with SMTP id 10mr155523nfc; Fri, 20 Jan 2006 08:18:23 -0800 (PST) Received: by 10.48.255.2 with HTTP; Fri, 20 Jan 2006 08:18:04 -0800 (PST) Message-ID: <3d13dcfc0601200818o5185cf96v@mail.gmail.com> Date: Fri, 20 Jan 2006 17:18:04 +0100 From: David MENTRE To: Alessandro Baretta Subject: Re: [Caml-list] Associativity of new operators Cc: Ocaml In-Reply-To: <43D10AA1.8050102@barettadeit.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <43D10AA1.8050102@barettadeit.com> X-Miltered: at concorde with ID 43D10D51.003 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 43D10D51.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 baretta:01 baretta:01 barettadeit:01 toplevel:01 infix:01 defined:01 caml:02 alessandro:03 depends:04 docs:05 inria:05 manual:06 table:93 determines:06 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.3 2006/1/20, Alessandro Baretta : > The above toplevel session shows that the associativity of newly defined > operators depends on the name of the operator itself. Is there a general = rule to > determine the associativity of the operator? Yep, the first letter of the operator determines its associativity. See http://caml.inria.fr/pub/docs/manual-ocaml/manual015.html """ The table below shows the relative precedences and associativity of operators and non-closed constructions. [...] For infix and prefix symbols, we write "*..." to mean "any symbol starting with *". """ Best wishes, d.