Hi Igor,
I have the impression that you ran some code that is not shown in the
screenshot and that that code changed your a to #(0 0 0 0), i.e.:
{ 0 . 0 . 0 . 0 }
Try this:
a := { 1 . 2 . 3 . 4 . 5 }.
a at: 5.
a := { 0 . 0 . 0 . 0 }.
a at: 5.
Btw, have you tried the "Terse Guide to Squeak"? You can access it
with:
Help -> Terse Guide to Squeak
or by running this in a workspace:
HelpBrowser openOn: TerseGuideHelp.
It runs in a "HelpBrowser", and note that the window in which it
displays each topic is almost a "mini-workspace" in this sense,
http://anggtwu.net/SQUEAK/squeak-by-example-5.3.pdf
but it doesn't support local variables. I am beginner too, but a few
days ago I asked lots of questions about how these local variables
work, and I learned how to create Help Browsers that support local
variables... the main ideas are in this thread:
http://lists.squeakfoundation.org/pipermail/squeak-dev/2023-February/223560.html
Cheers =),
Eduardo Ochs
http://anggtwu.net/eev-squeak.htmlOn Sat, 4 Mar 2023 at 20:09, Igor Raven <igorraven1@gmail.com> wrote:_______________________________________________This code segment works for the presenter, Huw, at https://youtu.be/8ibI5bfssCU?list=PLZHx5heVfgEvuveKG1T7BBSuDOTHl1eLl&t=1481
but it fails for me.
The Screen grab shows my code and error on left and working code on right.
What am I missing? Please be gentle ;-)
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners