diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2011-06-19 08:59:07 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2011-06-19 08:59:07 -0400 |
| commit | f4e6664361f2eaf10f2bd3c81916acc57c547037 (patch) | |
| tree | 46db8e06f0f40d6093584037a192a4f8ce2771a9 | |
| parent | 61ab6e1e47f3337468486e9fcf41044cd6fade22 (diff) | |
| download | icfp2011-f4e6664361f2eaf10f2bd3c81916acc57c547037.tar.gz | |
Fix bug in the rule_error
| -rw-r--r-- | game.ml | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |
