[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 03/06: Fix error in exception printer when bootstrapping
From: |
Andy Wingo |
Subject: |
[Guile-commits] 03/06: Fix error in exception printer when bootstrapping |
Date: |
Thu, 14 Apr 2016 14:34:12 +0000 |
wingo pushed a commit to branch wip-port-refactor
in repository guile.
commit 110695c82e724521dbd0ebedee8f85fef2c418a2
Author: Andy Wingo <address@hidden>
Date: Wed Apr 13 11:12:24 2016 +0200
Fix error in exception printer when bootstrapping
* module/ice-9/boot-9.scm (exception-printers): Fix error in which, for
a pure bootstrap with no compiled files, the exception printer would
use false-with-exception before it has been defined, which doesn't
work for macros. We wouldn't see this problem normally because,
oddly, the macro is indeed defined normally because of boot reasons.
---
module/ice-9/boot-9.scm | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/module/ice-9/boot-9.scm b/module/ice-9/boot-9.scm
index 6da8085..9e9efe6 100644
--- a/module/ice-9/boot-9.scm
+++ b/module/ice-9/boot-9.scm
@@ -895,7 +895,10 @@ for key @var{k}, then invoke @var{thunk}."
(when frame
(print-location frame port)
- (let ((name (false-if-exception (frame-procedure-name frame))))
+ ;; When booting, false-if-exception isn't defined yet.
+ (let ((name (catch #t
+ (lambda () (frame-procedure-name frame))
+ (lambda _ #f))))
(when name
(format port "In procedure ~a:\n" name))))
- [Guile-commits] branch wip-port-refactor updated (f7027a8 -> 25461be), Andy Wingo, 2016/04/14
- [Guile-commits] 03/06: Fix error in exception printer when bootstrapping,
Andy Wingo <=
- [Guile-commits] 05/06: Fix R6RS imports of interfaces that use interfaces, Andy Wingo, 2016/04/14
- [Guile-commits] 02/06: Allow port "write" functions to only write a chunk, Andy Wingo, 2016/04/14
- [Guile-commits] 01/06: Update port implementation documentation., Andy Wingo, 2016/04/14
- [Guile-commits] 04/06: Fix scm_init_struct dependency on port conversion handlers, Andy Wingo, 2016/04/14
- [Guile-commits] 06/06: Load port bindings in separate (ice-9 ports) module, Andy Wingo, 2016/04/14