with-output-to-port
with-trace-output-port)
(export ()
- ;; Temporary definition to satisfy R7RS
- ;; TODO(cph): provide a proper definition
- (current-error-port current-output-port)
close-input-port
close-output-port
close-port
+ current-error-port
current-input-port
current-output-port
i/o-port?
\f
;;;; Standard Ports
-(define current-input-port)
-(define current-output-port)
-(define notification-output-port)
-(define trace-output-port)
-(define interaction-i/o-port)
-(add-boot-init!
- (lambda ()
- (set! current-input-port (make-port-parameter input-port?))
- (set! current-output-port (make-port-parameter output-port?))
- (set! notification-output-port (make-port-parameter output-port?))
- (set! trace-output-port (make-port-parameter output-port?))
- (set! interaction-i/o-port (make-port-parameter i/o-port?))
- unspecific))
+(define-deferred current-input-port (make-port-parameter input-port?))
+(define-deferred current-output-port (make-port-parameter output-port?))
+(define-deferred current-error-port (make-port-parameter output-port?))
+(define-deferred notification-output-port (make-port-parameter output-port?))
+(define-deferred trace-output-port (make-port-parameter output-port?))
+(define-deferred interaction-i/o-port (make-port-parameter i/o-port?))
(define (make-port-parameter predicate)
(make-general-parameter #f