(redirecting to vm-dev)<br><br><div class="gmail_quote">On Thu, May 13, 2010 at 4:41 PM, Igor Stasenko <span dir="ltr">&lt;<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Just want to share my experience working with Interpreter/<br>
interpreterProxy api using VMMaker.<br>
<br>
Make a guess (and answer quickly, in what direction each of these<br>
methods doing conversion)<br>
<br>
positive32BitValueOf:<br>
positive32BitIntegerFor:<br>
<br>
<br>
got the answer?<br></blockquote><div><br></div><div>valueOf: takes a Smalltalk object and returns a 32-bit C value.</div><div>IntegerFor: takes a 32-bit C value and answers a Smalltalk object.</div><div>I find these natural :)</div>
<div><br></div><div>Things I *hate* are nasty gotchers in Slang like</div><div>        self sizeof: #sqLong</div><div>which translates to</div><div>        (sizeof(&quot;sqLong&quot;))</div><div>You have to write</div>        self sizeof: #sqLong asSymbol</div>
<div class="gmail_quote">to get<br>        (sizeof(sqLong))</div><div class="gmail_quote">(ouch).</div><div class="gmail_quote"><br></div><div class="gmail_quote">I&#39;d fix this but IIRC there are plugins that use this.  Ho hum.  Some time we need to rationalize Slang and throw out some of the more evil traps such as the above.</div>
<div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

These methods along with other xxxIntegerFor: and xxxValueOf:<br>
used most frequently in primitive conversion code.<br>
And i am really sick of such naming..<br></blockquote><div><br></div><div>Why not create some more comprehensible aliases for your own use and get e.g. Slang to translate them to the form you find hard to distinguish?</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font color="#888888"><br>
--<br>
Best regards,<br>
Igor Stasenko AKA sig.<br>
<br>
</font></blockquote></div><br>