Re: What do we mean by "Identical" ?
- From: Pascal Bourguignon <spam@xxxxxxxxxxxxxxxx>
- Date: Sun, 30 Oct 2005 17:49:16 +0100
"John Thingstad" <john.thingstad@xxxxxxxxx> writes:
> Also NIL is the ONLY object that does not inherit from T.
What do you mean?
An object may be an instance of a class.
A class may inherit from another class.
But unless we have an object model where the dichotomy between objects
and classes doesn't exist, an object doesn't inherit from another object.
That said in CL, T is a "class", and NIL is an instance of (a subclass
of) the class T:
(typep NIL 'T) --> T
#+clisp (clos::subclassp (find-class 'null) (find-class 't)) --> T
> So.. any expression that does not evaluate to nil is T in Lisp
> generalized boolean.
It is not T, it is true.
> (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.
Not T, true.
--
__Pascal Bourguignon__ http://www.informatimago.com/
Kitty like plastic.
Confuses for litter box.
Don't leave tarp around.
.
- Follow-Ups:
- Re: What do we mean by "Identical" ?
- From: John Thingstad
- 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
- Re: What do we mean by "Identical" ?
- From: John Thingstad
- What do we mean by "Identical" ?
- Prev by Date: CLX, FFIs, and graphics
- 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
|