[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 03/10: Slight (system base compile) refactor
From: |
Andy Wingo |
Subject: |
[Guile-commits] 03/10: Slight (system base compile) refactor |
Date: |
Fri, 8 May 2020 11:13:41 -0400 (EDT) |
wingo pushed a commit to branch master
in repository guile.
commit cdb9030f45cf75e23c3f5c8c19aa7fa5e73868e4
Author: Andy Wingo <address@hidden>
AuthorDate: Thu May 7 21:22:26 2020 +0200
Slight (system base compile) refactor
* module/system/base/compile.scm (call-once): Use when instead of if.
---
module/system/base/compile.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/module/system/base/compile.scm b/module/system/base/compile.scm
index 5929cb5..ea73cc5 100644
--- a/module/system/base/compile.scm
+++ b/module/system/base/compile.scm
@@ -37,8 +37,8 @@
(let ((entered #f))
(dynamic-wind
(lambda ()
- (if entered
- (error "thunk may only be entered once: ~a" thunk))
+ (when entered
+ (error "thunk may only be entered once: ~a" thunk))
(set! entered #t))
thunk
(lambda () #t))))
- [Guile-commits] branch master updated (728de16 -> 4311dc9), Andy Wingo, 2020/05/08
- [Guile-commits] 06/10: Add #:optimization-level, #:warning-level compile keyword args, Andy Wingo, 2020/05/08
- [Guile-commits] 09/10: Warning and optimization levels always small integers, Andy Wingo, 2020/05/08
- [Guile-commits] 08/10: Wire up simplified warning levels in "guild compile", Andy Wingo, 2020/05/08
- [Guile-commits] 02/10: Remove compilation order cache, Andy Wingo, 2020/05/08
- [Guile-commits] 01/10: Update (system base compile) header, Andy Wingo, 2020/05/08
- [Guile-commits] 04/10: Use more `match' in (system base compile), Andy Wingo, 2020/05/08
- [Guile-commits] 05/10: Rework compile-fold, Andy Wingo, 2020/05/08
- [Guile-commits] 10/10: Define new "lowering" phase in compiler, Andy Wingo, 2020/05/08
- [Guile-commits] 07/10: Add language-specific analysis pass to compiler infrastructure, Andy Wingo, 2020/05/08
- [Guile-commits] 03/10: Slight (system base compile) refactor,
Andy Wingo <=