Re: What do we mean by "Identical" ?
- From: "John Thingstad" <john.thingstad@xxxxxxxxx>
- Date: Sun, 30 Oct 2005 14:37:38 +0100
On Sun, 30 Oct 2005 12:25:30 +0100, <newser.bbs@xxxxxxxxxxxxxxxxx> wrote:
Harald , I sincerely wish you have good time during your riding in the warm breeze. I think there is misunderstanding between us. I am not a pedagog. In fact , I have confessed that I am new to lisp.
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".
Again , in "Practical Common Lisp" , Peter tells us that "expression (eq 3 3) can legally evaluate to either true or false" . Following your procedures , I'm too foolish to see why it is possible for (eq 3 3 ) to evaluate to false.
Many thanks if anyone can give me a hint !
NIL is always stored in the same place in memory. (or rather it is defined to behave as though it was) Same for T.
These are the ONLY elements with are guaranteed to have these properties.
The reason for nil having it is to make list prosessing more efficent I would think.
(Imagine the waste if each list had a unique nil element)
Also NIL is the ONLY object that does not inherit from T.
So.. any expression that does not evaluate to nil is T in Lisp generalized boolean.
(if 1 ..) gives the same result as (if 2 ...) or (if "hello" ...)
Expressions on the form nil, T, some number, a string are called self evaluating.
That is.. When 'called' during the parsing of the paramenters they return themselves.
Also a function call (func ..) is T unless it returns nil.
-- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ .
- Follow-Ups:
- Re: What do we mean by "Identical" ?
- From: Pascal Bourguignon
- Re: What do we mean by "Identical" ?
- References:
- What do we mean by "Identical" ?
- From: newser . bbs
- Re: What do we mean by "Identical" ?
- From: newser . bbs
- Re: What do we mean by "Identical" ?
- From: newser . bbs
- Re: What do we mean by "Identical" ?
- From: Harald Hanche-Olsen
- Re: What do we mean by "Identical" ?
- From: newser . bbs
- What do we mean by "Identical" ?
- Prev by Date: Re: What do we mean by "Identical" ?
- Next by Date: Re: Lisp Logos - here is some space for your IDEAS
- Previous by thread: Re: What do we mean by "Identical" ?
- Next by thread: Re: What do we mean by "Identical" ?
- Index(es):
Relevant Pages
|