* New version of IRM New version of the IRM, updated to Medley. * moved to docs/medley-irm as discussed
84 lines
140 KiB
Plaintext
84 lines
140 KiB
Plaintext
MEDLEY REFERENCE MANUAL
|
||
MEDLEY EXECUTIVES
|
||
(NIL NIL NIL NIL (NIL) 1)13. MEDLEY EXECUTIVES
|
||
2
|
||
|
||
In most Common Lisp implementations, there is a ªtop-level read-eval-print (READ-EVAL-PRINT% NIL read-eval-print% NIL (NIL) 1)loop,º which reads an expression, evaluates it, and prints the results. In Medley, the Exec acts as the top-level loop, but does much more.
|
||
The Exec traps all THROWS, and recovers gracefully. It prints all values resulting from evaluation, on separate lines. (When zero values are returned, nothing is printed).
|
||
The Exec keeps track of your previous inputs, in the history list. Each entry you type creates a history event, which sotres the input and its values.
|
||
It's easy to use the results of earlier events, redo and event, or recall an earlier input, edit it, and run it. This makes it much easier to get your work done.
|
||
Multiple Execs and the Exec's Type
|
||
1
|
||
|
||
(MULTIPLE% EXECS NIL Multiple% Execs NIL (NIL) 1)Sometimes you need more than one Exec open at a time. It's easy to open as many as you need by using the right button background menu and selecting the kind of Exec you need. The Execs are differentiated from one another by their "names" in their title bars and by their prompts. For example, the second Exec you open may have a prompt like 2/50> if it's the second Common Lisp Exec you've opened. Events in each Exec are placed on the global history list with their Exec number so the system can tell them apart.
|
||
(EXEC% TYPE NIL Exec% type NIL (NIL) 1)Several variables are very important to an Exec since they control the format of reading and printing. Together these variables describe a type of exec, or its mode. Some standard bindings for the variables have been named to make mode setting easy. The names provide you with an Exec of the Common Lisp (LISP), Interlisp or Old Interlisp (IL), or Medley (XCL) type. An Exec's type is displayed in the title bar of its window:
|
||
|