summaryrefslogtreecommitdiffstats
path: root/otherlibs/labltk/example
diff options
context:
space:
mode:
authorPierre Weis <Pierre.Weis@inria.fr>2000-12-28 13:07:42 +0000
committerPierre Weis <Pierre.Weis@inria.fr>2000-12-28 13:07:42 +0000
commit2116da4220acde3fdf11ac0ef0100e0166729bcd (patch)
tree3d09bdc4675c58823863bfe12c05e6cdd490d6f0 /otherlibs/labltk/example
parent447c79eadec7db87abc782735c5b06ed4fd020e4 (diff)
Getting rid of obsolete boolean operators & and or
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3359 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/labltk/example')
-rw-r--r--otherlibs/labltk/example/tetris.ml8
1 files changed, 4 insertions, 4 deletions
diff --git a/otherlibs/labltk/example/tetris.ml b/otherlibs/labltk/example/tetris.ml
index 9f11fc769..e2d4277a7 100644
--- a/otherlibs/labltk/example/tetris.ml
+++ b/otherlibs/labltk/example/tetris.ml
@@ -212,7 +212,7 @@ class cell t1 t2 t3 ~canvas ~x ~y = object
method get = color
method set ~color:col =
if color = col then () else
- if color <> 0 & col = 0 then begin
+ if color <> 0 && col = 0 then begin
Canvas.move canvas t1
~x:(- block_size * (x + 1) -10 - cell_border * 2)
~y:(- block_size * (y + 1) -10 - cell_border * 2);
@@ -232,7 +232,7 @@ class cell t1 t2 t3 ~canvas ~x ~y = object
Canvas.configure_rectangle canvas t3
~fill: (`Color "light gray")
~outline: (`Color "light gray");
- if color = 0 & col <> 0 then begin
+ if color = 0 && col <> 0 then begin
Canvas.move canvas t1
~x: (block_size * (x+1)+10+ cell_border*2)
~y: (block_size * (y+1)+10+ cell_border*2);
@@ -250,7 +250,7 @@ end
let cell_get (c, cf) x y = cf.(y).(x) #get
let cell_set (c, cf) ~x ~y ~color =
- if x >= 0 & y >= 0 & Array.length cf > y & Array.length cf.(y) > x then
+ if x >= 0 && y >= 0 && Array.length cf > y && Array.length cf.(y) > x then
let cur = cf.(y).(x) in
if cur#get = color then () else cur#set ~color
@@ -443,7 +443,7 @@ let _ =
and clear fb =
let l = ref 0 in
for i = 0 to 3 do
- if i + fb.y >= 3 & i + fb.y <= 22 then
+ if i + fb.y >= 3 && i + fb.y <= 22 then
if field.(i + fb.y) = line_full then
begin
incr l;