Consider the following example, where a closure is defined:
(let ((test-button (make-instance 'capi:button)))
(defun is-button-enabled ()
(slot-value test-button 'capi::enabled)))
This has defined the function is-button-enabled
, which is a closure over the variable test-button
, where the value of test-button
is an instance of the capi:button
class.
The inspector examines the symbol is-button-enabled
.
FUNCTION
item to select the closure.You can also double-click on an item in the Main area to inspect it.