[Omake] SVN Commit: OMake Build System (Rev. 11932)
Jason J. Hickey
jyh at cs.caltech.edu
Wed Aug 8 16:02:01 PDT 2007
This adds just the main evaluation of curried functions, where
application must be total.
Note, the way it is implemented now, the application must be
total for all nested curried functions. For example, suppose
you write,
curry.f(x) =
curry.g(y) =
add($x, $y)
# The following is a partial application, illegal
f(0)
We may wish to make this legal (pretty easy to do).
TODO: make it possible to _define_ curried functions.
TODO: augment "apply" to allow partial applications.
TODO: check that path exports in eval_apply_method_export_exp are working correctly.
----
Changes in omake-branches/jumbo/curry/src:
+4 -0 builtin/omake_builtin_object.ml
+11 -0 env/omake_command_digest.ml
+36 -0 env/omake_env.ml
+4 -0 env/omake_env.mli
+66 -2 eval/omake_eval.ml
+8 -0 eval/omake_value.ml
+4 -0 ir/omake_value_print.ml
+1 -0 ir/omake_value_type.ml
+1 -0 main/omake_shell.ml
A hyperlinked version of this commit is available at
http://svn.metaprl.org/commitlogs/omake/2007-08.html#07/08/08.16:02:01
More information about the OMake-CVS
mailing list