1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-28 16:00:22 +02:00

* Remove calls to symbol-interned? which have always been useless, but now

have become wrong since symbols and bindings are separated.
This commit is contained in:
Dirk Herrmann 2000-12-29 15:47:16 +00:00
parent 5d2b97cd07
commit 1746633025
2 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,13 @@
2000-12-29 Dirk Herrmann <D.Herrmann@tu-bs.de>
* boot-9.scm (root-module-closure, scm-module-closure): Remove
calls '(symbol-interned? #f s)'. Formerly, these calls were
basically no-ops, guaranteed to return #t if 's' was a symbol.
After the separation of symbols and bindings, a call to
'(symbol-interned? #f s)' will only return #t if there really is a
binding for 's' in the scm_symhash table. Thanks to Dale P. Smith
for providing a test case that helped finding this bug.
2000-12-13 Dirk Herrmann <D.Herrmann@tu-bs.de>
* session.scm (apropos): Completed the last patch, which did only

View file

@ -1440,8 +1440,7 @@
(define (root-module-closure m s define?)
(let ((bi (and (symbol-interned? #f s)
(builtin-variable s))))
(let ((bi (builtin-variable s)))
(and bi
(or define? (variable-bound? bi))
(begin
@ -1462,8 +1461,7 @@
;;
(define (scm-module-closure m s define?)
(let ((bi (and (symbol-interned? #f s)
(builtin-variable s))))
(let ((bi (builtin-variable s)))
(and bi
(variable-bound? bi)
(begin