Re: Is there any eq t test in Common Lisp?
- From: "Andreas Thiele" <nospam@xxxxxxxxxx>
- Date: Sat, 27 Jan 2007 13:15:35 +0100
"John Thingstad" <john.thingstad@xxxxxxxxx> schrieb im Newsbeitrag news:op.tms6tnlzpqzri1@xxxxxxxxxxxxxxxxx
...Indeed (typep :name T) -> T
CL-USER 3 > (eq t t)
T
CL-USER 4 > (eq t :read-only)
NIL
...
That is generalized boolean.
I take it you want binary boolean?
häääh ?!? NO - just needed the above behaviour (eq t variable) ...
... I just had library function returning either t,
:read-only or nil. I was only interested in the t case.
.... and wasn't sure if I missed something like null, not, zerop, plusp et. al..
Nothing more!
Andreas
P.S. (not (null x)) is *not* equivalent to (eq t x)!
.
- References:
- Is there any eq t test in Common Lisp?
- From: Andreas Thiele
- Re: Is there any eq t test in Common Lisp?
- From: Tim Bradshaw
- Re: Is there any eq t test in Common Lisp?
- From: Andreas Thiele
- Re: Is there any eq t test in Common Lisp?
- From: John Thingstad
- Re: Is there any eq t test in Common Lisp?
- From: Andreas Thiele
- Re: Is there any eq t test in Common Lisp?
- From: John Thingstad
- Is there any eq t test in Common Lisp?
- Prev by Date: Re: LISP Object Oriented ?
- Next by Date: Re: Is there any eq t test in Common Lisp?
- Previous by thread: Re: Is there any eq t test in Common Lisp?
- Next by thread: Re: Is there any eq t test in Common Lisp?
- Index(es):
Relevant Pages
|