Version française
Home     About     Download     Resources     Contact us    
Browse thread
Associativity of new operators
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Eric Cooper <ecc@c...>
Subject: Re: [Caml-list] Associativity of new operators
On Fri, Jan 20, 2006 at 05:06:57PM +0100, Alessandro Baretta wrote:
> [...]
> 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?

Section 6.7 of the manual. Basically, it's determined by the initial
character, so @^$ will have the same associativity as @.

-- 
Eric Cooper             e c c @ c m u . e d u