[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 01/01: Prevent (@ (ice-9 boot-9) x)
From: |
Andy Wingo |
Subject: |
[Guile-commits] 01/01: Prevent (@ (ice-9 boot-9) x) |
Date: |
Fri, 24 Jun 2016 15:24:33 +0000 (UTC) |
wingo pushed a commit to branch master
in repository guile.
commit ff5cafc77d34420b12a134ef2c1d5bd7ca4794cb
Author: Andy Wingo <address@hidden>
Date: Fri Jun 24 17:22:17 2016 +0200
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.
---
module/ice-9/boot-9.scm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/module/ice-9/boot-9.scm b/module/ice-9/boot-9.scm
index 5d1fcc4..c2ee108 100644
--- a/module/ice-9/boot-9.scm
+++ b/module/ice-9/boot-9.scm
@@ -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}