[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: file-compile problem/question

The original query did not contain country identification.
That's why I reply to the query via this mailing list.

>I am quite confused by the following difference in behavior I
>experience between interpreted and compiled AKCL. Maybe somebody can
>tell me whether this is a bug in my thinking or in KCL.
>(defun is-treep(tree)
>  (and (listp tree)
>       (eq (length tree) 3)
>       (attribute-p (tree-attribute tree))))

You used EQ for integer comparison.  That's why.
You should use = instead.
See CLtL page 78 for the description of EQ.  

-- Taiichi