remove @apply memoizer
authorAndy Wingo <wingo@pobox.com>
Thu, 27 Jun 2013 09:25:34 +0000 (11:25 +0200)
committerAndy Wingo <wingo@pobox.com>
Thu, 27 Jun 2013 20:02:35 +0000 (22:02 +0200)
commit39caffe79b3d159590b5ce1ccf8fe28c3d5cfdc6
tree94994ed36aed8426e5287953396350e92db1b5dc
parent1773bc7dd5f4c8a1d13c7cf2015f3a04c9299eeb
remove @apply memoizer

* libguile/memoize.c (memoize): Recognize a primcall to 'apply as
  SCM_M_APPLY.
  (@apply): Remove @apply memoizer.
  (unmemoize): Unmemoize using "apply", not "@apply".

* libguile/memoize.h:
* libguile/expand.c (scm_sym_atapply): Remove.

* module/ice-9/boot-9.scm (apply): Re-implement using apply primcall.
  Use case-lambda, so as to give an appropriate minimum arity.

* module/language/tree-il/compile-glil.scm (flatten-lambda-case):
  Compile a primcall of "apply" specially, not "@apply".

* module/language/tree-il/peval.scm (peval): Match primcalls to "apply",
  not "@apply".  Residualize "apply" primcalls.

* module/language/tree-il/primitives.scm (*interesting-primitive-names*):
  (*multiply-valued-primitives*): Remove @apply, and apply primitive
  expander.

* test-suite/tests/peval.test:
* test-suite/tests/tree-il.test: Update tests to expect residualized
  "apply".

* test-suite/tests/procprop.test ("procedure-arity"): Update test for
  better apply arity.

* test-suite/tests/strings.test ("string"): Update expected error.
libguile/expand.c
libguile/memoize.c
libguile/memoize.h
module/ice-9/boot-9.scm
module/language/tree-il/compile-glil.scm
module/language/tree-il/peval.scm
module/language/tree-il/primitives.scm
test-suite/tests/peval.test
test-suite/tests/procprop.test
test-suite/tests/strings.test
test-suite/tests/tree-il.test