Re-2: [Newbies] Stef, BotsInc problem...

Ned Konz ned at bike-nomad.com
Thu Jan 25 03:39:54 UTC 2007


Frank Urbach wrote:
> Hi David,
> 
> I was digging a little bit in the code of the MicroWorkspace. I saw
> that Stef changed the behavior of the execution for the content of 
> this Workspace by clicking on the button. Every execution is bounded
> with the execution of a block. This block forks. So I didn't see the 
> behavior of stepping in this morph but this would explain why the script
> is still running after a halt. 
> I do not know enough to see why Stef did it in this way. 
> And after all I guess that the programming environment is not the goal
> of the book and BotsInc.

The reason for the fork is simple (though the implementation is not): 
Morphic is single threaded, while Stef wanted to allow multiple 
independent programs written in straight Smalltalk for the purpose of 
his book.

And he wanted to present things like loops and make it relatively 
student-proof.

So the approach that he took was to fork each script and arrange for the 
UI to be updated from time to time as the individual scripts are running.

> 
> -------- Original Message --------
> Subject: Re: [Newbies] Stef, BotsInc problem... (24-Jan-2007 5:19)
> From:    David Mitchell <david.mitchell at gmail.com>
> To:      frank.urbach at schmees.com
> 
>> I downloaded the ReadyPC image from the SCGSmallWiki site and I am able 
>> to repeat the problem.
>>
>> I think it is something wrong with the Bot Workspace. I am able to 
>> repeat your bug if I click the Do It or Do It All buttons in the Bot 
>> Workspace.
>>
>> The good news is you can workaround the problem (by not using the 
>> buttons). Instead, press Alt+D or (Command+D on Mac) to invoke the do it 
>> command. This is what I normally do and explains why I didn't notice the 
>> problem when working through the book.
>>
>> The Bot Workspace was added for the book. I bet the buttons worked at 
>> one point and a code change broke them. Went unnoticed because a lot of 
>> Squeakers already use the right-click context menus or the keyboard 
>> shortcuts.
>>
>> I'm running windows. Can someone test on Mac and/or Linux?
>>
>> I downloaded the ReadyPC image from
>>
>> Blake wrote:
>>
>>> On Mon, 22 Jan 2007 19:19:55 -0800, David Mitchell  
>>> <david.mitchell at gmail.com> wrote:
>>>
>>>> That's true enough, but the stack you are debugging shouldn't continue.
>>>>
>>>> Unfortunately, I can't think what might be wrong. I've gone through 
>>>> Bots  Inc without hitting this one.
>>>
>>> I haven't had a chance to try this out but if it doesn't 
>>> work...reinstall?
>>> _______________________________________________
>>> Beginners mailing list
>>> Beginners at lists.squeakfoundation.org
>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>>>
>> _______________________________________________
>> Beginners mailing list
>> Beginners at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
> 
> 
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
> 



-- 
Ned Konz
ned at bike-nomad.com
http://bike-nomad.com


More information about the Beginners mailing list