Hi Christoph,

Thanks so much for the prompt and useful reply.  It’s very encouraging!

Hearing there’s a revision in the works, I’ll point out a needed copy edit:  On page 32, Where it says "Note that the characters ‘' on line 3 are two separate single quotes”, the line number above where that occurs is actually line 5, not line 3.

Thanks again!  I’ve wanted to learn Smalltalk since I first heard of  it in the eighties, now, in retirement, it’s happening.  Good bye FORTRAN IV.  :-)

Leonard



On Jul 1, 2023, at 6:07 AM, christoph.thiede@student.hpi.uni-potsdam.de wrote:

Hi Leonard,

thanks for asking!

In the browser, you need to type the following code:

initialize

    super initialize.
    
self
        
label: '';
        
borderWidth: 2;
        
bounds: (0 @ 0 corner: 16 @ 16);
        
offColor: Color cantaloupe;
        
onColor: Color aqua;
        
useSquareCorners.
    
self turnOff.


The notation in the book (SBECell»initialize) just means that the initialize method should go in the class SBECell. This is also explained in the book, but unfortunately a couple of pages too late:

A typographic convention. Smalltalkers frequently use the notation “>>” to identify the class to which a method belongs, so, for example, the cellsPerSide method in class SBEGame would be referred to as SBEGame>>cellsPerSide. To indicate that this is not Smalltalk syntax, we will use the special symbol » instead, so this method will appear in the text as SBEGame»cellsPerSide. From now on, when we show a method in this book, we will write the name of the method in this form. Of course, when you actually type the code into the browser, you don’t have to type the class name or the »; instead, you just make sure that the appropriate class is selected in the class pane.


> Is this a change from Squeak 5.3 to 6.0. Should I download Squeak 5.3 in order to use the SBE book?

No, it is not a change. Squeak by Example Edition 5.3 applies to 95% to Squeak 6.0. Nevertheless, we will release a 6.0 edition of Squeak by Example very soon. :-)

Thank you for raising this question. We should introduce this typographic convention earlier on. If you have any other questions, please do not hesitate to ask!

Happy Squeaking and best regards,
Christoph

---
Sent from Squeak Inbox Talk

On 2023-07-01T03:27:15+00:00, lcuff2@yahoo.com wrote:

> I'm following the instructions in Squeak By Example (SBE), edition 5.3. On page 32 it gives code for SBECell initialize. When I type the exact code (excerpted below) It turns everything after the »red. When I accept it, I get "Nothing more expected". If I delete the "» initialize", it gets syntax colored and looks valid, but the method name is no longer initialize. Is this a change from Squeak 5.3 to 6.0. Should I download Squeak 5.3 in order to use the SBE book?
>
> SBECell»initialize
> super initialize.
> self
> label: '';
> borderWidth: 2;
> bounds: (0 @ 0 corner: 16 @ 16);
> offColor: Color cantaloupe;
> onColor: Color aqua;
> useSquareCorners.
> self turnOff._______________________________________________
Beginners mailing list -- beginners@lists.squeakfoundation.org
To unsubscribe send an email to beginners-leave@lists.squeakfoundation.org