mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 22:10:21 +02:00
(top-level-env): Use `current-module' instead of
the deprecated *top-level-lookup-closure*.
This commit is contained in:
parent
a524a03f87
commit
2b33d8dcd7
1 changed files with 4 additions and 3 deletions
|
@ -80,9 +80,10 @@
|
|||
(else (find-duplicate (cdr l)))))
|
||||
|
||||
(define (top-level-env)
|
||||
(if *top-level-lookup-closure*
|
||||
(list *top-level-lookup-closure*)
|
||||
'()))
|
||||
(let ((mod (current-module)))
|
||||
(if mod
|
||||
(module-eval-closure mod)
|
||||
'())))
|
||||
|
||||
(define (top-level-env? env)
|
||||
(or (null? env)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue