[Newbies] Quinto Game Example Code Not Working
waufrepi III
waufrepi at gmail.com
Tue Apr 29 14:47:58 UTC 2008
I got an error here too, when I first did the example. I think I removed:
self turnOff and the code worked. I was using the Cobalt image though. not
sur if this helps.
wfpi
On 4/28/08, Dr. Zephy <yeoldemac at gmail.com> wrote:
>
> I'm working through the Squeak by Example book and ran into a snag. The
> code on
> page 33 for the Quinto game is returning an error message.
> I have the SBECell selected and "-- all --" is highlighted in the right
> pane,
> just like in the book, but it responds with the message "Unknown variable:
> initialize please correct or cancel: / declare temp / declare instance
> /
> cancel".
>
> So I guess it doesn't recognize "initialize" and thinks I'm trying to
> create a
> variable? According to the book it should be recognized.
>
> Here's the code:
>
> initialize
> super initialize.
> self label: ''.
> self borderWidth: 2.
> bounds := 0 at 0 corner: 16 at 16.
> offColor := Color paleYellow.
> onColor := Color paleBlue darker.
> self useSquareCorners.
> self turnOff
>
>
> I even downloaded the code for the book from Squeaksource and pasted it in
> and
> it does the same thing.
>
> Any help would be appreciated.
>
> Thanks,
> - Eric (Dr. Zephy)
>
> _______________________________________________
> 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/20080429/cb933d48/attachment.htm
More information about the Beginners
mailing list