class of cons?

Ralf Juengling <[email protected]>
Newsgroups gmane.lisp.lush.devel
Message-ID <[email protected]>
There is no class object for conses:

(classof <x>)                                 [DX]
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Returns the class of an object x .

Example:
? (classof (new object))
= ::class:object


? (classof '(1 2 3))
= ()
? (classof ())
= ()


I was surprised by this, perhaps it should be mentioned in
the online help. It would be a problem if there are other
kinds of objects for which 'classof' could return nil.

Ralf




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.