Hi Gary,<br><br><div class="gmail_quote">On Thu, Jul 23, 2009 at 3:28 AM, Gary Dunn <span dir="ltr">&lt;<a href="mailto:osp@aloha.com">osp@aloha.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Thu, 2009-07-23 at 00:19 -0400, John McKeon wrote:<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jul 21, 2009 at 12:57 PM, Gary Dunn &lt;<a href="mailto:osp@aloha.com">osp@aloha.com</a>&gt; wrote:<br>
&gt;         I was reading about SqueakMap and came across the Swiki page<br>
&gt;         for Alice<br>
&gt;<br>
&gt;         <a href="http://wiki.squeak.org/squeak/1861" target="_blank">http://wiki.squeak.org/squeak/1861</a><br>
&gt;<br>
&gt;         Is anyone actively using Alice in Squeak?<br>
&gt;<br>
&gt;            - The page was last edited in 2004<br>
&gt;<br>
&gt;            - The first link is dead<br>
&gt;<br>
&gt;            - The second link goes to the new, improved Sun sponsored<br>
&gt;         all Java<br>
&gt;         version of Alice, which appears to be healthy<br>
&gt;<br>
&gt;            - The third link downloads a Ph.D. dissertation from 1997<br>
&gt;<br>
&gt;            - After the outdated info is a rant on the shortcomings of<br>
&gt;         OpenGL.<br>
&gt;         It just starts up, mid stream, &quot;There is a serious design flaw<br>
&gt;         in the<br>
&gt;         lighting or rather the shading.&quot; This should be removed.<br>
&gt;<br>
&gt;            - A search on the Swiki for Alice includes a page on Falice<br>
&gt;         which<br>
&gt;         links to <a href="http://www.falice.com" target="_blank">www.falice.com</a> which is a parked domain.<br>
&gt;<br>
&gt;         Last but not least, when I try to load &quot;FullImageProjectAlice&quot;<br>
&gt;         I get<br>
&gt;         errors. Very likely I am doing something wrong.<br>
&gt;<br>
&gt;         Is this worth pursuing, or has Alice in Squeakland wandered<br>
&gt;         off?<br>
&gt;<br>
&gt; Aloha Gary,<br>
&gt; I remember the first time I saw Squeak, A;ice was pre-loaded in the<br>
&gt; image, so I did some digging.<br>
&gt; If  you are really interested go to <a href="http://ftp.squeak.org" target="_blank">ftp.squeak.org</a> and download a a<br>
&gt; 2.x version of Squeak.<br>
&gt; The 2.8 distribution has it installed. Be warned, the older Squeak<br>
&gt; interface might disappoint you ;)<br>
&gt;<br>
&gt; Regards<br>
&gt; John McKeon<br>
<br>
Thanks, John. I downloaded the 2.8 image and changes files, and the V2<br>
sources, and launched squeak with those. It opens fine, if old looking,<br>
and Alice is in there. I did a Wonderland new. and ran into an error:<br>
<br>
mustBeBoolean<br>
        &quot;Catches attempts to test truth of non-Booleans.  This message is sent<br>
from the<br>
        interpreter.&quot;<br>
<br>
        self error: &#39;NonBoolean receiver--proceed for truth.&#39;.<br>
        ^true<br>
<br>
The offending code is<br>
<br>
areasRemainingToFill: aRectangle<br>
        ^myCamera drawSceneBackground<br>
                ifTrue:[aRectangle areasOutside: self bounds]<br>
                ifFalse:[Array with: aRectangle]<br>
<br>
where &quot;bounds&quot; in the ifTrue branch is highlighted.</blockquote><div><br></div><div>This looks as if myCamera drawSceneBackground is not returning a boolean.  Certain messages, in particular ifTrue: ifFalse: ifTrue:ifFalse: whileTrue: and whileFalse: are inlined by the compiler into conditional branch instructions which operate on the object on top of stack.  The conditional branches expect either true or false, the sole instances of True and False respectively.  When they encounter something other than true or false the VM sends mustBeBoolean to that object.  So look in the debugger at the object that has received mustBeBoolean.  This was the result that <span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">myCamera drawSceneBackground returned, whereas areasRemainingToFill: expected a boolean.</span></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">HTH</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Eliot</span></font></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
<br>
A little more digging reveals that senders of bounds have something to<br>
do with AlignmentMorph, which is old stuff -- is the problem that ny VM<br>
is too &quot;new.?&quot;<br>
<br>
Any suggestions as to how to proceed? Is there a way to cast &quot;bounds&quot; to<br>
the Boolean requirement? Sorry, that&#39;s my C showing.<br>
<font color="#888888"><br>
--<br>
Gary Dunn, Honolulu<br>
<a href="mailto:osp@aloha.com">osp@aloha.com</a><br>
<a href="http://openslate.net/" target="_blank">http://openslate.net/</a><br>
<a href="http://e9erust.blogspot.com/" target="_blank">http://e9erust.blogspot.com/</a><br>
Sent from Slate001<br>
<br>
<br>
</font></blockquote></div><br>