Debug it mysteries

Raymond raymondasselin at sympatico.ca
Fri Apr 25 20:22:28 UTC 2003


  Bob Arning a écrit :

> 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]
>> 	
>> 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

Very happy too, with this explanation thanks Bob



More information about the Squeak-dev mailing list