forgive the duplication.  I sent to the wrong list first time around.<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Eliot Miranda</b> <span dir="ltr">&lt;<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>&gt;</span><br>
Date: Tue, Mar 3, 2009 at 11:50 AM<br>Subject: urgent info required on Slang&#39;s shift treatment...<br>To: Squeak Virtual Machine Development Discussion &lt;<a href="mailto:vm-dev@lists.squeakfoundation.org">vm-dev@lists.squeakfoundation.org</a>&gt;<br>
<br><br>Hi All,<div><br></div><div>    I&#39;m being bitten by Slang&#39;s treatment of bitShift: &amp; &gt;&gt;.  In both cases (generateBitShift:on:indent: &amp; generateShiftRight:on:indent:) Slang generates an unsigned shift by explicitly casting the shifted expression to usqInt.  I can understand the benefit of having an unsigned shift.  But there are times when one really needs a signed shift.  Further, the Smalltalk versions of both bitShift: and &gt;&gt; are signed shifts.</div>

<div><br></div><div>Dare I change e.g. generateShiftRight:on:indent: to leave the expression alone and generate either a signed or an unsigned shift based on the variable&#39;s declaration?  Or must I live with a maddening cCode: &#39;(signed)&#39; inSmalltalk: [] carbuncle?</div>

<div><br></div><font color="#888888"><div>E.</div>
</font></div><br>