Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Associativity precedence for the user-defined operator.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Claudio Trento <trento@d...>
Subject: [Caml-list] Associativity precedence for the user-defined operator.

Hi,

I've defined a set of new operetors, for instance:

let ( /+/ ) = add_num   (where add_num is a function that added two sometype 
			elements.) 

but I don't know if I can set associativity precedence for this operator,
writing: el1 ( /+/ ) el2 ( /+/ ) el3 without parenthesis, what happens?



Cheers,

Claudio 


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners