<br><br><div class="gmail_quote">On Wed, Mar 5, 2008 at 7:01 PM, Igor Stasenko &lt;<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
i currently tried to implement a proxy (subclass of ProtoObject) with<br>
own IfTrue:/ifFalse: methods.<br>
What i can&#39;t understand, is why VM throws me with #mustBeBoolean<br>
message instead of doing real send if optimized pattern fails (when<br>
receiver of #IfTrue: is a non-boolean)?<br>
<br>
Is there any way, without modifying compiler, how to force it to do real send?<br>
<font color="#888888"><br></font></blockquote><div><br>Oh, you&#39;ll also have trouble with &gt;&gt;class and &gt;&gt;==. These two messages are implemented directly in the VM and bypass method lookup. I have no solution to this but there&#39;s a patch for the VM here: <a href="http://wiki.squeak.org/squeak/2074">http://wiki.squeak.org/squeak/2074</a>.<br>
<br>Gulik.<br></div></div><br>-- <br><a href="http://people.squeakfoundation.org/person/mikevdg">http://people.squeakfoundation.org/person/mikevdg</a><br><a href="http://gulik.pbwiki.com/">http://gulik.pbwiki.com/</a>