On 12-08-22 5:46 PM, dav0 wrote:
OK, so I rebuilt the tutorial from scratch and I am able to reproduce
the syntax error again now when I click on a yellow square. I'm not
real sure what the syntax error is because the tutorial hasn't covered
much of the Smalltalk syntax yet.
I am also seeing the same sort of display symptoms as before, where
the checkerboard is offset around 50 pixels both in the x and the y
directions - indicating that the syntax error has something to do with
the checkerboard's positioning.
I am attaching the sources which I manually saved along the way
(SBE-Quinto.sources). Note: I did make one change to the original PDF
code which seems to have an extra dash '-' in the Class category
(package) name, where two of the provided methods specify
"SBE--Quinto" instead of "SBE-Quinto" as the tutorial says to use.
The one thing which I am doing that I suspect may be part of the
problem is the fact that I have newer Squeak sources than those which
are referenced by the book. The book's SBE image seems to complain
every time I start up displaying a little pop-up which says
"SqueakV39.sources does not exist" at which point, I always "Choose
another name" from the menu and select my more recent
"SqueakV41.sources" which I downloaded previously. Could this be
causing this issue?
Thanks
Dave
Hi Dave,
Kudos to you for persisting and rebuilding the exercise. That's good.
You do want to match your sources file with the right image. As you can
see from this page, there are sources for various Squeak releases:
http://squeak.org/Download/
It sounds to me that if you are starting and it asks for
SqueakV39.sources, then you are downloading an image from somewhere of
which I am unfamiliar. It might be easiest to download Squeak from the
homepage, get an all-in-one and leave the business of sources files to
the maker of that package.
http://www.squeak.org.
The sources may be the problem. They may not be. Either way, perhaps you
should upgrade to contemporary Squeak? Then, you have the working
sources available at
http://www.squeaksource.com/SqueakByExample
You can use that version of the game to compare with the one you've
rebuilt by hand.
I'm not sure it's my role here to actually find the syntax error for
you. Bug hunting is really the fun of programming and I wouldn't want to
take that way from you. :)
HTH,
Chris
_______________________________________________
Beginners mailing list
[email protected]
http://lists.squeakfoundation.org/mailman/listinfo/beginners