<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 12-08-22 2:17 PM, dav0 wrote:<br>
</div>
<blockquote
cite="mid:CAAfbinAvyGckY00q5duiQE81VS1KSAyYSAioAxcsaWWWswsmLQ@mail.gmail.com"
type="cite">
<div
style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Hi,
Squeak is really cool so far, but I have finally hit a snag I
can't seem to figure out, and I think it may have something to
do with the fact that I am attempting to run the SBE on a
slightly newer version of Squeak maybe?</div>
<div
style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br>
</div>
<div
style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
I am on page 43 of the SBE book and I get the following syntax
error when I follow this instruction:</div>
<div
style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br>
</div>
<div
style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">"In
a workspace, type SBEGame new openInWorld and do it ."</div>
<div
style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
<br>
</div>
<div
style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Thanks!</div>
<div
style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br>
</div>
<div
style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
-dav0</div>
<div
style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br>
</div>
<div
style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
---------- Syntax Error (Popup window) ------------------</div>
<div
style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br>
</div>
<span
style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">HandMorph
Morphic-Kernel he</span>
<div
style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
<br>
<div>----------</div>
<div><br>
</div>
<div>
<div>he user wants it and not just aligned with the cliprect"</div>
<div><br>
</div>
<div><span style="white-space:pre-wrap"> </span>(patternForm
isForm) ifFalse: [</div>
<div>
<span style="white-space:pre-wrap"> </span>"patternForm is
a Pattern or Color; just Nothing more expected ->use it
as a mask for BitBlt"</div>
<div><span style="white-space:pre-wrap"> </span>^ aPort fill:
aPort clipRect fillColor: patternForm rule: Form over].</div>
<div><br>
</div>
<div><span style="white-space:pre-wrap"> </span>"do it
iteratively"</div>
<div><span style="white-space:pre-wrap"> </span>targetBox _
aPort clipRect.</div>
<div><span style="white-space:pre-wrap"> </span>patternBox _
patternForm boundingBox.</div>
<div><span style="white-space:pre-wrap"> </span>savedMap _
aPort colorMap.</div>
<div><span style="white-space:pre-wrap"> </span>aPort
sourceForm: patternForm;</div>
<div><span style="white-space:pre-wrap"> </span>fillColor:
nil;</div>
<div><span style="white-space:pre-wrap"> </span>combinationRule:
Form paint;</div>
<div><span style="white-space:pre-wrap"> </span>sourceRect:
(0@0 extent: patternBox extent);</div>
<div><span style="white-space:pre-wrap"> </span>colorMap:
(patternForm colormapIfNeededFor: aPort destForm).</div>
<div><span style="white-space:pre-wrap"> </span>top _
(targetBox top truncateTo: patternBox height) + offset y.</div>
<div><span style="white-space:pre-wrap"> </span>left _
(targetBox left truncateTo: patternBox width) + offset x.</div>
<div><br>
</div>
<div><span style="white-space:pre-wrap"> </span>left to:
(targetBox right - 1) by: patternBox width do:</div>
<div><span style="white-space:pre-wrap"> </span>[:x | top to:
(targetBox bottom - 1) by: patternBox height do:</div>
<div><span style="white-space:pre-wrap"> </span>[:y | aPort
destOrigin: x@y; copyBits]].</div>
<div><span style="white-space:pre-wrap"> </span>aPort
colorMap: savedMap.</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Beginners mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/mailman/listinfo/beginners">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a>
</pre>
</blockquote>
When I go to <a class="moz-txt-link-freetext" href="http://www.squeaksource.com/SqueakByExample">http://www.squeaksource.com/SqueakByExample</a> I see that
the example code for the book is available. <br>
<br>
I click on Tools in Squeak and select MonticelloBrowser. I then hit
AddRepository, click HTTP, and then add SqueakByExample after
<a class="moz-txt-link-freetext" href="http://www.squeaksource.com">http://www.squeaksource.com</a> in location:. I accept and close the
window. Click Open. In the new window click SBE-Quinto on the left.
Then press Load. <br>
<br>
Now open a Workspace. Type:<br>
<br>
SBEGame new openInWorld <br>
<br>
highlight it and do it. Then you'll see the game. <br>
This was in a 4.4 alpha build number #12186, which is very recent.
So, as far as I cans see, the Quinto game mentioned on pg. 43 of SBE
still works. <br>
<br>
Chris <br>
</body>
</html>