unless → when

v6.3-exception
Matthew Butterick 7 years ago
parent 86b788a304
commit 2f69dda794

@ -15,7 +15,7 @@
(b-goto num-expr))) (b-goto num-expr)))
(define (b-return) (define (b-return)
(unless (not (empty? return-ccs)) (when (empty? return-ccs)
(raise-line-error "return without gosub")) (raise-line-error "return without gosub"))
(define top-cc (pop! return-ccs)) (define top-cc (pop! return-ccs))
(top-cc (void))) (top-cc (void)))

@ -15,7 +15,7 @@
(b-goto num-expr))) (b-goto num-expr)))
(define (b-return) (define (b-return)
(unless (not (empty? return-ccs)) (when (empty? return-ccs)
(raise-line-error "return without gosub")) (raise-line-error "return without gosub"))
(define top-cc (pop! return-ccs)) (define top-cc (pop! return-ccs))
(top-cc (void))) (top-cc (void)))

Loading…
Cancel
Save