mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-21 12:10:26 +02:00
Slight (system base compile) refactor
* module/system/base/compile.scm (call-once): Use when instead of if.
This commit is contained in:
parent
f38735ffc6
commit
cdb9030f45
1 changed files with 2 additions and 2 deletions
|
@ -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))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue