This commit is contained in:
Mylloon 2023-11-06 20:57:21 +01:00
parent 2546d6d16b
commit ce19965127
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -445,8 +445,9 @@ and apply_expression f x environment memory =
| VPrimitive (_, f) ->
(* Fonction "primitive" *)
f memory x_val
| VClosure (env_fn, pattern, expr) ->
(* Fonction *)
| VClosure (_env_fn, _pattern, _expr) ->
(* Fonction
* TODO: Pattern matching ici *)
failwith "Students! This is your job (Apply)!"
| _ -> assert false (* By typing *)