sasagawa888 / eisl

ISLisp interpreter/compiler
Other
272 stars 22 forks source link

Bug of stream-error-stream #248

Closed sasagawa888 closed 1 year ago

sasagawa888 commented 1 year ago

(defun domain-error-handler (condition) (let ((data ())) (setq data (cons (domain-error-object condition) (domain-error-expected-class condition))) (throw 'c-domain-error data)))

(defglobal data nil) ;;; (defglobal data nil) (setq data (catch 'c-domain-error (with-handler #'domain-error-handler (stream-error-stream 1)))) ;($test (car data) 1 eql) ;($test (eq (cdr data) (class )) t)

(cdr data) is . correct is

sasagawa888 commented 1 year ago

Fixed.