Visualization Tools User's Guide
We will manipulate an array in several ways, showing off the features
of the evaluation pane.
- In a workspace, type and evaluate (Array new: 13)
snoop.
- In the resulting snoop window, select the self line.
- Press alt+X. (Or, push the X:= button, or from
Actions or the popup menu select X := Selected
item). This sets the global variable X to the
array.
- Press alt+V. (Or, from Actions select Toggle
Evaluation Pane).

- Click on the workspace pane of the Snooper.
- Type X at: 3 put: Transcript.
- Press control+E. (Or, from the popup menu select
Evaluate) to evaluate the expression.
- Press the Rebuild button.

- Clear the workspace pane (control+l, or select Clear from the
popup menu.
- Type X select: [:v | v
notNil], and evaluate it.
- Note that a one-element array has appeared in the "value" column, and the
expression you evaluated in the "expression" column of the table pane.
- Clear the workspace pane. Type X size, and evaluate
it.
- Note that 13 has appeared as the first value in the table
pane.
- Scroll the table down. Note that the value and
select: expression from step 10 are further down in the table.
- Select that line.
- From the popup menu select Edit.
- Note that X select: [:v | v
notNil], the expression from step 10, appears in the workspace pane.
- Replace select: by reject:, and evaluate
the resulting expression.
- Note than an array of nil's has appeared as the first
element in the table, and the 13 has dropped to a lower
position.
[ Top of Page | Previous Page | Next Page | Table of Contents ]