This might be off topic, but why "To"? Why not "As"? Being ignorant of slang might explain why I'm asking:)<br><br><div class="gmail_quote">On Thu, May 13, 2010 at 8:15 PM, Igor Stasenko <span dir="ltr"><<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 14 May 2010 05:07, David T. Lewis <<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>> wrote:<br>
> On Fri, May 14, 2010 at 02:41:22AM +0300, Igor Stasenko wrote:<br>
>> 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>
>><br>
>> 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>
><br>
> If you think of a positive integer value stored in a 32-bit C variable<br>
> as a "positive32BitValue", and an integer object representing values<br>
> in the range 0 through 4294967295 as a "positive32BitInteger", then<br>
> the naming seems reasonable to me.<br>
><br>
> Personally, I use MemoryAccess and SlangBrowser to look at things<br>
> like this in the browser and figure out what is really going on. This<br>
> shows that #positive32BitValueOf: answers an integer value (twos complement<br>
> 32-bit integer as in C or Fortran), and #positive32BitIntegerFor: answers<br>
> an object of type SmallInteger or LargePositiveInteger.<br>
><br>
</div>That's the point, each time i wasting time on that , to make sure i<br>
using right way of conversion.<br>
I didn't thought about better naming , but i think a more revealing<br>
names would be something like:<br>
<br>
positive32BitIntToOop<br>
oopToPositiveInt32<br>
<br>
or<br>
<br>
uint32ToOop<br>
integerOopToUint32<br>
<br>
the 'To' word is a key here, it leaves no options how to interpret the<br>
operation direction.<br>
<div><div></div><div class="h5"><br>
><br>
<br>
><br>
<br>
<br>
<br>
--<br>
Best regards,<br>
Igor Stasenko AKA sig.<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Casey Ransberger<br>