summaryrefslogtreecommitdiff
path: root/oop
diff options
context:
space:
mode:
authorMarius Vollmer <mvo@zagadka.de>2001-05-05 19:09:14 +0000
committerMarius Vollmer <mvo@zagadka.de>2001-05-05 19:09:14 +0000
commit2b33d8dcd7744aa93840b4318154cd67aac91e93 (patch)
treebacb784b9e68e335507aa1335a9ee11b0725850e /oop
parenta524a03f87f5e243e072b7ad1d02b29ffae1b8da (diff)
downloadguile-2b33d8dcd7744aa93840b4318154cd67aac91e93.tar.gz
(top-level-env): Use `current-module' instead of
the deprecated *top-level-lookup-closure*.
Diffstat (limited to 'oop')
-rw-r--r--oop/goops/util.scm7
1 files changed, 4 insertions, 3 deletions
diff --git a/oop/goops/util.scm b/oop/goops/util.scm
index 0e6df4147..b5ab894da 100644
--- a/oop/goops/util.scm
+++ b/oop/goops/util.scm
@@ -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)