[Vm-dev] positive32BitValueOf: fail with LargePositiveInteger
stephane.ducasse at gmail.com
Sat Oct 9 20:28:08 UTC 2010
Why do you all think that mariano is not trying to learn?
He is! He read all the chapters available and books on the topics.
Now may be tell him simply that he is an idiot.
This would be more efficient. But Mariano is a really smart guy so may be
we can also tell him to do ruby or python and we can stay in our nice little
club or we can consider that learning alone is difficult.
>> Hi. I am trying to call #primitiveBitOr which inside calls #popPos32BitInteger which calls #positive32BitValueOf , with two LargePositiveInteger. Example:
>> 9999999999 bitOr: 8888888888.
>> Now, this seems to fail since the #bitOr: of LargePositiveInteger is failing, and thus, super (Integer) is being used. Now, I don't understand why it fails.
> Because 9999999999 does not fit into 32 bits.
>> So....I don't understand...how can I have a LargePositiveInteger but that is less than 32 bits? Wouldn't that be a SmallInteger?
> SmallIntegers are 31 bits. Positive SmallIntegers are 30 bits:
> SmallInteger maxVal
> You *really* should start learning about the Squeak VM basics first.
> - Bert -
More information about the Vm-dev