mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-20 02:30:23 +02:00
finish deprecating eval closures
* libguile/deprecated.h: * libguile/deprecated.c (scm_eval_closure_lookup) (scm_standard_eval_closure, scm_standard_interface_eval_closure) (scm_eval_closure_module): Deprecate these, as they are unused. * libguile/modules.h: * libguile/modules.c: Remove deprecated code. * module/oop/goops/util.scm (top-level-env, top-level-env?): Deprecate. * module/ice-9/deprecated.scm (set-system-module!): Deprecate. (module-eval-closure): Deprecate, by overriding the core definition to return a fresh eval closure. * module/ice-9/boot-9.scm (make-module): Don't set an eval closure on the module. (the-root-module, the-scm-module): Don't call set-system-module!.
This commit is contained in:
parent
3f48638c8c
commit
2de74cb56e
7 changed files with 120 additions and 151 deletions
|
@ -17,7 +17,7 @@
|
|||
|
||||
|
||||
(define-module (oop goops util)
|
||||
:export (mapappend find-duplicate top-level-env top-level-env?
|
||||
:export (mapappend find-duplicate
|
||||
map* for-each* length* improper->proper)
|
||||
:use-module (srfi srfi-1)
|
||||
:re-export (any every)
|
||||
|
@ -37,15 +37,18 @@
|
|||
((memv (car l) (cdr l)) (car l))
|
||||
(else (find-duplicate (cdr l)))))
|
||||
|
||||
(define (top-level-env)
|
||||
(let ((mod (current-module)))
|
||||
(if mod
|
||||
(module-eval-closure mod)
|
||||
'())))
|
||||
(begin-deprecated
|
||||
(define (top-level-env)
|
||||
(let ((mod (current-module)))
|
||||
(if mod
|
||||
(module-eval-closure mod)
|
||||
'())))
|
||||
|
||||
(define (top-level-env? env)
|
||||
(or (null? env)
|
||||
(procedure? (car env))))
|
||||
(define (top-level-env? env)
|
||||
(or (null? env)
|
||||
(procedure? (car env))))
|
||||
|
||||
(export top-level-env? top-level-env))
|
||||
|
||||
(define (map* fn . l) ; A map which accepts dotted lists (arg lists
|
||||
(cond ; must be "isomorph"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue