[Openmcl-devel] How is 'inspect' supposed to behave?

Gary Byers gb at clozure.com
Tue Oct 16 09:08:06 UTC 2012


This was fixed in the trunk several months ago, but the change never made
it into the 1.8 svn tree.

It's there now.


On Tue, 16 Oct 2012, Steven N?ez wrote:

> Greetings all,
> 
> I was playing around with XMLisp and noticed some odd behavior in the
> 'inspect' function, which the author uses in some of the examples. According
> the the function documentation, found here:
> 
> http://trac.clozure.com/ccl/wiki/CommandLineInspect
>
>       "To inspect a Lisp object, call the?function?INSPECT on the
>       object. This displays the object, showing its contents as a
>       sequence of numbered "items". If there are a lot of items (e.g.
>       a large array) , they're displayed in "pages", i.e. groups that
>       you can scroll up and down through. (Each "page" is 20 lines.)"
> 
> 
> However most of the time 'inspect' returns nil. For example:
> 
> CL-USER> (inspect "foo")
> NIL
> 
> However?
> 
> (describe "foo")
> "foo"
> Type: (SIMPLE-BASE-STRING 3)
> Class: #<BUILT-IN-CLASS SIMPLE-BASE-STRING>
> Length: 3
> 0: #\f
> 1: #\o
> 2: #\o
> ; No value
> 
> Does anyone know why, or have a good example of 'inspect'? I'm using slime
> and ccl 1.8.
> 
> Regards,
> - Steve
> 
>



More information about the Openmcl-devel mailing list