Evaluator sets same procedure properties as compiler
authorAndy Wingo <wingo@pobox.com>
Sat, 26 Oct 2013 11:10:43 +0000 (13:10 +0200)
committerAndy Wingo <wingo@pobox.com>
Sat, 26 Oct 2013 11:10:43 +0000 (13:10 +0200)
commit27ecfd3649dc6fbc5f512d3e95a8b8ac2139e2b9
tree6b1e8d894f2b656842912e15bf614ba3ab525a1f
parentcfc28c808e44582e9751b54713c58fd91ab53f16
Evaluator sets same procedure properties as compiler

* libguile/memoize.c (MAKMEMO_LAMBDA, memoize): Instead of passing the
  docstring in the memoized lambda, pass the meta as-is.  That way we
  get all procedure properties, including "name".
* module/ice-9/eval.scm (primitive-eval): Set procedure properties when
  making lambdas.  Don't set the name when defining toplevel variables
  -- before we did so only if the procedure didn't have a name
  property, but I would like to avoid calls to procedure-property in
  eval, because getting the name for an RTL function requires loading up
  other modules.
libguile/memoize.c
module/ice-9/eval.scm