make-procedure-with-setter inherits name from getter
authorAndy Wingo <wingo@pobox.com>
Sat, 1 Nov 2008 16:12:23 +0000 (17:12 +0100)
committerAndy Wingo <wingo@pobox.com>
Sat, 1 Nov 2008 16:12:23 +0000 (17:12 +0100)
commit3fd8807eab56f37eb881e2be98246ec6620957ab
tree0792d60ed715f3e7ce79894c9e670eb5191c9766
parent0a283d1b0b07d3b4ba1358e797f697a9a5850ca8
make-procedure-with-setter inherits name from getter

* libguile/procs.c (scm_make_procedure_with_setter): Patch through the
  getter's procedure name to the procedure-with-setter. Fixes part of the
  srfi-17 test, as the VM doesn't set procedure-name on define -- but
  perhaps that is the bug that should be fixed. In any case this patching
  is cheap.

* test-suite/tests/eval.test: Change so that (define name pws) is
  initially passed an anonymous procedure-with-setter, as was the case
  before the procs.c change.
libguile/procs.c
test-suite/tests/eval.test