[Newbies] Code not working

Eduardo Ochs eduardoochs at gmail.com
Sun Mar 5 00:11:11 UTC 2023


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.html


On Sat, 4 Mar 2023 at 20:09, Igor Raven <igorraven1 at 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 ;-)
> [image: image.png]
>
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/beginners/attachments/20230304/97e70270/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 145444 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/beginners/attachments/20230304/97e70270/attachment-0001.png>


More information about the Beginners mailing list