[ENH] InspectorEnh-ajh ( [er][et] [approved] )
dway at riskmetrics.com
Mon Dec 1 04:32:15 UTC 2003
Looks good. Also, changing String>>asExplorerString to use
#printString is nice.
A futher refactoring that could be done at some point is to change most
of the implementors of #inspect (Dictionary, OrderedCollection, etc.)
to implement #inspectorClass instead.
On Tuesday, November 25, 2003, at 01:42 PM, marcus at ira.uka.de wrote:
> md: just tested under 3.7a. works ok. the functionality is quite nice,
> and we allready have special Inpectors for Dictionary...
> from preamble:
> "Change Set: InspectorEnh-ajh
> Date: 22 June 2003
> Author: Anthony Hannan
> Adds #inspectorClass protocol that #inspect calls to find the
> appropriate inspector for the receiver. #basicInspect uses a new
> generic inspector called BasicInspector. CompiledMethods use a new
> inspector class call CompiledMethodInspector, which display mnemonic
> bytecode instructions and literals. An inspector will change to the
> appropriate class when being updated with a new receiver.
> String asExplorerString has been changed to print its normal
More information about the Squeak-dev