mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-22 04:30:19 +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))
|
(let ((entered #f))
|
||||||
(dynamic-wind
|
(dynamic-wind
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(if entered
|
(when entered
|
||||||
(error "thunk may only be entered once: ~a" thunk))
|
(error "thunk may only be entered once: ~a" thunk))
|
||||||
(set! entered #t))
|
(set! entered #t))
|
||||||
thunk
|
thunk
|
||||||
(lambda () #t))))
|
(lambda () #t))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue