fix 05-assignment-empty.sh
This commit is contained in:
parent
6e88ad23d0
commit
da105e0e81
|
@ -53,11 +53,13 @@
|
|||
|
||||
(define %functions '())
|
||||
|
||||
(define (assignment name value)
|
||||
(and value
|
||||
(set! %global-variables
|
||||
(assoc-set! %global-variables name value))
|
||||
#t))
|
||||
(define* (assignment name #:optional value)
|
||||
(if value
|
||||
(set! %global-variables
|
||||
(assoc-set! %global-variables name value))
|
||||
(set! %global-variables
|
||||
(assoc-set! %global-variables name "")))
|
||||
#t)
|
||||
|
||||
(define* (variable name #:optional (default ""))
|
||||
(cond ((string->number name)
|
||||
|
|
Loading…
Reference in New Issue