Pass a value to (set!) a parameter object

Allow changing a parameter object by passing a value directly to it.
This commit is contained in:
Justin Ethier 2016-08-31 03:05:34 -04:00
parent cec9e5c954
commit def5bba06a

View file

@ -925,7 +925,9 @@
((eq? (car args) '<param-convert>) ((eq? (car args) '<param-convert>)
converter) converter)
(else (else
(error "bad parameter syntax" args)))))) ;(error "bad parameter syntax" args)
(set! value (converter (car args)))
)))))
(define current-output-port (define current-output-port
(make-parameter (Cyc-stdout))) (make-parameter (Cyc-stdout)))
(define current-input-port (define current-input-port