1
Fork 0
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:
Andy Wingo 2020-05-07 21:22:26 +02:00
parent f38735ffc6
commit cdb9030f45

View file

@ -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))))