In the search for the meaning of "self"

smalltalk

Solution

You can debug the code you execute and you will see that you end up executing a temporary method on an object. For instance in Pharo the workspace DoIts create a method on UndefinedObject (nil). So here self will refer to nil.

Problem

In smalltalk exists the "workspace" environment. BY definition,"self" points to the object inside which the current method is executing. But how am I to understand "current method" when I type code snippets inside the workspace window? There is no current object running any method or I missed something.Anyone can help?

Original source