Debug it mysteries

Bob Arning arning at charm.net
Thu Apr 24 22:27:09 CEST 2003


On Thu, 24 Apr 2003 13:14:25 -0700 (PDT) Anthony Adachi =
<adachipro at yahoo.com> wrote:
>In the top pane of the Debug it window the following
>text appears:
>
>UndefinedObject>>DoIt
>[] in
>TextMorphEditor(ParagraphEditor)>>debug:receiver:in:
>[] in BlockContext>>newProcess
>
[snip]
>=09
>What does the "UndefinedObject" text mean?

Anthony,

Most code that is run in Smalltalk is in methods which belong to =
classes. The canonical way of printing out the class and method =
invloved is Class>>method. When you evaluate code in a workspace, it =
isn't really a method and doesn't really belong to a particular class, =
but to keep various programming/debugging tools happy, it is made to =
appear so temporarily. The code gets compiled into a method named #DoIt =
in the class UndefinedObject (the class of which nil is the only =
instance) and then gets deleted once it is complete.

Cheers,
Bob


More information about the Squeak-dev mailing list

Squeak-dev list courtesy of The InternetOne and tric, the new way