Browse thread
Associativity of new operators
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | David MENTRE <david.mentre@g...> |
| Subject: | Re: [Caml-list] Associativity of new operators |
2006/1/20, Alessandro Baretta <a.baretta@barettadeit.com>: > 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.