Re: What do we mean by "Identical" ?



newser.bbs@xxxxxxxxxxxxxxxxx wrote:

I believe that you are right that the arguments should be evaluated
before the calling of the function , but this still makes me more and
more confused . What do you think makes "eq" different from "eql"?
Following those procedures you taught me , I can't tell "eq" apart from
"eql".

It is true that for most values, eq and eql behave exactly the same. The only exceptions are characters and numbers, and this is for technical reasons. Since you are a newbie, I would suggest to you to forget about eq for the time being and always use eql when you want to test for identity. eq is really only an optimized variation of eql that you can use when you are sure about what you are doing, that is when you are absolutely sure that you are _not_ comparing characters or numbers. You will get back to this later when optimization issues become more important in your programs...



Pascal

--
My website: http://p-cos.net
Closer to MOP & ContextL:
http://common-lisp.net/project/closer/
.