A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.lispworks.com/documentation/lw61/IDE-W/html/ide-w-360.htm below:

17.5.1.1 Example

17.5.1.1 Example

Consider the following example, where a closure is defined:

(let ((test-button (make-instance 'capi:button)))
  (defun is-button-enabled ()
    (capi:button-enabled test-button)))

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.

  1. Enter the definition of the closure shown above into a Listener.
  2. Choose Works > Values > Inspect .
  3. The Inspector examines the symbol is-button-enabled .

  4. Click on the FUNCTION slot to select the closure.
  5. Choose Works > Slots > Inspect to inspect the value in the selected slot.

The closure is inspected.

LispWorks IDE User Guide (Windows version) - 25 Nov 2011


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4