(catch #t
(lambda ()
(let ((exp (read rec-channel)))
- (format #t "~a~%" exp)
(cond ((eof-object? exp)
(close rec-channel))
(else
- (format #t "~a~%" (primitive-eval (car exp)))
- (format send-channel "~a" (primitive-eval (car exp)))))))
+ (write (format #f "~a" (eval-string exp)) send-channel)))))
(lambda (key . args)
(let ((fmt (string-concatenate (list (cadr args) "~%")))
(params (caddr args)))
- (if params
- (apply format (cons send-channel (cons fmt params)))
- (format send-channel fmt))))))))
+ (write
+ (if params
+ (apply format (cons #f (cons fmt params)))
+ (format #f fmt))
+ send-channel))))
+ (force-output send-channel))))