mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-09 21:40:33 +02:00
Prevent (@ (ice-9 boot-9) x)
* module/ice-9/boot-9.scm: Prevent re-loading, perhaps via (@ (ice-9 boot-9) foo). (ice-9 boot-9) isn't a module. Fixes #21801.
This commit is contained in:
parent
9687334ff5
commit
ff5cafc77d
1 changed files with 5 additions and 0 deletions
|
@ -39,6 +39,11 @@
|
|||
(eval-when (compile)
|
||||
(set-current-module (resolve-module '(guile))))
|
||||
|
||||
;; Prevent this file being loaded more than once in a session. Just
|
||||
;; doesn't make sense!
|
||||
(if (current-module)
|
||||
(error "re-loading ice-9/boot-9.scm not allowed"))
|
||||
|
||||
|
||||
|
||||
;;; {Language primitives}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue