6.3 Inspecting in the listener

6.3.2 INSPECT

The function inspect is an interactive version of describe. It displays objects in a similar way to describe. Entering the teletype inspector causes a new level of the top loop to be entered with a special prompt indicating that the inspector has been entered and showing the current inspector level.

Within the modified top loop entering an integer causes that slot to be inspected and the current object to be pushed onto an internal stack of inspected previously inspected objects. The special variables $, $$ and $$$ are bound to the top three objects on the inspector stack.

The following keywords are also treated specially by the inspector:

:d
Display current object.

:i
(Followed by an object to inspect.) Recursively invoke a new inspector.

:q
Quit current inspector.

:s n v
Sets slot n to value v.

:sh
Show inspector stack.

:u
Undo last inspection (with optional integer argument).

The variables *inspect-print-level* and *inspect-print-length* are similar to *describe-print-level* and *describe-print-length*. (See above.)


FreeLisp User's Guide - 5 FEB 1996

Generated with Harlequin WebMaker