Version française
Home     About     Download     Resources     Contact us    
Browse thread
Should a /\ operator be possible?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Should a /\ operator be possible?
Should code like this be possible?

  let ( /\ ) (a1, a2) (b1, b2) = a2 > b1 || b2 > a1

This is accepted by camlp4 (3.10.1 & 3.10.2) but rejected by pure
ocamlc and also by ocamldoc.

$ ocamlc -pp camlp4of test.ml
<nothing printed>

$ ocamlc test.ml
File "test.ml", line 1, characters 7-8:
Illegal character (\\)

Rich.

-- 
Richard Jones
Red Hat