aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2011-06-19 08:59:07 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2011-06-19 08:59:07 -0400
commitf4e6664361f2eaf10f2bd3c81916acc57c547037 (patch)
tree46db8e06f0f40d6093584037a192a4f8ce2771a9
parent61ab6e1e47f3337468486e9fcf41044cd6fade22 (diff)
downloadicfp2011-f4e6664361f2eaf10f2bd3c81916acc57c547037.tar.gz
Fix bug in the rule_error
-rw-r--r--game.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/game.ml b/game.ml
index c327890..f1cbccf 100644
--- a/game.ml
+++ b/game.ml
@@ -8,9 +8,9 @@ let unfold (Lambda x) = x
let id = Lambda(fun x -> x)
-let (@) a1 a2 =
- try unfold a1 a2 with Rule_error "wrong application"
- -> id;;
+let (@) a1 a2 = match a1 with
+ | Lambda l1 -> l1 a2
+ | _ -> raise( Rule_error "wrong application")
type slot = {
mutable vitality: int;