sasagawa888/eisl

with-handler compiler bug

Closed this issue · 2 comments

Compiler can not compile with-handler. lack

Improving compiler. It works with following simple test case.

(defun foo (x)
   (catch 'exit
      (with-handler 
          (lambda (c) (throw 'exit c))
                 (bar x))))

(defun bar (x)
    (car x))

Easy-ISLisp Ver2.64
> (load "tests/bug.o")
T
> (foo 1)
<instance>
> (foo '(1 2))
1
> 

But compiled prolog.o invoke segmentation fault.

Fixed it. Now compiled prolog.o works well.