Opening an Object Explorer - LucPrestin/Hidden-Modularity GitHub Wiki

Description

This scenario is about tracing the drawing of the explorer, one of the most important tools in Squeak. To do this, we create a nested dictionary as the object to be inspected. We then explore this dictionary.

Code

| tmp |
	
tmp := Dictionary new.
	
tmp at: '1' put: 1.
tmp at: '2' put: Dictionary new.	
(tmp at: '2') at: '1' put: 1.
(tmp at: '2') at: '2' put: 'Hello'.
(tmp at: '2') at: '3' put: Morph new.
	
^ TDBCursor traceForBlock: [tmp explore]

Hypotheses

Evaluation

Further insights (optionally)