Version française
Home     About     Download     Resources     Contact us    
Browse thread
How do you declare infix in Ocaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Pierre Weis <Pierre.Weis@i...>
Subject: Re: How do you declare infix in Ocaml
Infixes in Ocaml are ordinary lexems: any sequence of symbols is an
infix that has the precedence of its first character.

For instance += is an infix that has the same precedence as +.

There are no other user's infixes in O'Caml.

Best regards,

Pierre Weis

INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://cristal.inria.fr/~weis/