Object Inspectors

December 17, 2010

Object Inspectors

Object Inspectors


http://silversmalltalk.appspot.com/

There is now a default ObjectInspector tool which shows the “Store String” of any basic object type in a text window.

You just send an “inspect” message to any object:

'hello world' inspect.
#smalltalk inspect

Also, there is an ArrayInspector which examines elements of an array.

#(this is #(1 2 3 4) nil true 'an example array')

I will be adding other inspector classes such as DictionaryInspector, ShapeInspector, etc.

Advertisements

4 Responses to “Object Inspectors”

  1. Carl Gundel Says:

    Great, but how to do this?

    Dictionary new inspect

    I get an error “Error: Dictionary class does not understand new”

    How is that even possible in a running Smalltalk system?

  2. Peter Fisk Says:

    Carl, in the post I said:

    “…I will be adding other inspector classes such as DictionaryInspector, ShapeInspector, etc.”

    You are attempting to use something (DictionaryInspector) that is not installed yet.

    Silver Smalltalk is not Squeak or VisualWorks. The VM is built in a completely different way.

  3. Carl Gundel Says:

    Okay thanks, but I still don’t understand why class Dictionary doesn’t understand new.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: