fix #197
This commit is contained in:
parent
bd68a94af5
commit
a0ab746fc8
|
@ -536,10 +536,9 @@
|
||||||
;; 6.13. Input and output
|
;; 6.13. Input and output
|
||||||
|
|
||||||
(define (call-with-port port proc)
|
(define (call-with-port port proc)
|
||||||
(dynamic-wind
|
(let ((value (proc port)))
|
||||||
(lambda () #f)
|
(close-port port)
|
||||||
(lambda () (proc port))
|
value))
|
||||||
(lambda () (close-port port))))
|
|
||||||
|
|
||||||
(export current-input-port
|
(export current-input-port
|
||||||
current-output-port
|
current-output-port
|
||||||
|
|
Loading…
Reference in New Issue