42 lines
51 KiB
Plaintext
42 lines
51 KiB
Plaintext
1
|
||
|
||
Medley for the Novice, Release 2.0
|
||
1
|
||
|
||
Medley for the Novice, Release 2.0
|
||
17. THE INSPECTOR
|
||
1
|
||
|
||
17. THE INSPECTOR
|
||
1
|
||
|
||
|
||
"17"17. THE INSPECTOR
|
||
6
|
||
|
||
|
||
|
||
The Inspector(INSPECTOR NIL Inspector NIL ("17") 1) is a window-oriented tool designed to examine data structures. Because Medley is such a powerful programming environment, many types of data structures would be difficult to see in any other way.
|
||
|
||
Calling the Inspector(INSPECTOR NIL Inspector NIL ("17") 1 SUBNAME CALLING SUBTEXT calling)
|
||
1
|
||
|
||
|
||
Take as an example an object defined through a sequence of pointers (i.e., a bitmap on the property list of a window on the property list of an atom inaprogram.)
|
||
To inspect an object named NAME, type:
|
||
(INSPECT 'NAME)
|
||
If NAME has many possible interpretations, an option menu will appear. For example, in Interlisp-D, a litatom can refer to both an atom and a function. For example, if NAME was a record, had a function definition, and had properties on its property list, then the menu would appear as in Figure 17-1.
|
||
|
||
|