[
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: | Jacques Garrigue <garrigue@k...> |
| Subject: | Re: [Caml-list] Specifying precedence ... |
From: "Andrzej M. Ostruszka" <ostruszk@order.if.uj.edu.pl>
> Is it possible to specify precedence of an "operator"?
> E.g. if I have something like
[...]
> then I'd like to evaluate 2*3^^2 to 18 (not 36).
This is section 6.7 of the ocaml 3.00 manual.
User defined operators have a fixed precedence, defined by their first
letter(s).
In this case, only operators starting by ** have higher precedence
than *, so you sould use ** or **...
Jacques Garrigue
-------------------
To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr