[Omake] SVN Commit: OMake Build System (Rev. 11944)

Jason J. Hickey jyh at cs.caltech.edu
Thu Aug 9 11:17:33 PDT 2007


Added partial application.

   add-c-suffix = $(apply $(addsuffix), .c)

Partial application can be used with both normal and
builtin functions.  For builtin functions, however, we
trust the arity spec, and the arity is often incorrect!

apply allows application to too few args, as well as
application to too many args.

    f(A = 1, x) =
       g(B = 2, y) =
          add($A, $B, $x, $y)
    
    i = $(apply $f, B = 10, 20, 30)

----
Changes in omake-branches/jumbo/curry:
    Added       COMMENTS
    +16 -2      src/builtin/omake_builtin_fun.ml
    +5 -1       src/builtin/omake_builtin_object.ml
    +7 -0       src/env/omake_command_digest.ml
    +34 -6      src/env/omake_env.ml
    +11 -1      src/env/omake_env.mli
    +131 -10    src/eval/omake_eval.ml
    +1 -0       src/eval/omake_eval.mli
    +8 -0       src/eval/omake_value.ml
    +4 -2       src/ir/omake_value_print.ml
    +2 -0       src/ir/omake_value_type.ml
    +1 -0       src/main/omake_shell.ml
    Added       test/curry/Test5
 
A hyperlinked version of this commit is available at
http://svn.metaprl.org/commitlogs/omake/2007-08.html#07/08/09.11:17:33



More information about the OMake-CVS mailing list