> On 31 May 2016, at 11:44 , Holger Freyther wrote:
>
> not with Pharo5:
>
> ((LargePositiveInteger new: 3) digitAdd: SmallInteger maxVal - 10) class
> => SmallInteger
That's a very recent change to the LargeInteger primitives, wasn't in my old
spur vm (a month old perhaps).
So,in addition to
> On 30 May 2016, at 19:03, Henrik Johansen
> wrote:
>
Hi!
> It's starting to come back to me; IIRC, + will normalize results to
> SmallIntegers, digitAdd: will not.
not with Pharo5:
((LargePositiveInteger new: 3) digitAdd: SmallInteger maxVal - 10) class
=> SmallInteger
> I thought it
> On 30 May 2016, at 5:49 , Henrik Johansen
> wrote:
>
> A few more comments below; I'm not seeing the things you describe when
> testing in my image...
>
>>>
>>> | id |
>>> id := LargePositiveInteger.
>>> 1 to: (16777215 + 50) do: [:each |
>>> id := id digitAdd: 1].
>>> id.
>>>
>>> Giv
> On 30 May 2016, at 5:49 , Henrik Johansen
> wrote:
>>>
>>> PS: The other part is that >>#newCounter doesn't seem to be ever executed.
>>> On first load >>#initialize will call >>#reset and on >>#shutDown: calls
>>> reset. So the code to "randomize" the initial counter doesn't seem to work.
A few more comments below; I'm not seeing the things you describe when testing
in my image...
>>
>> | id |
>> id := LargePositiveInteger.
>> 1 to: (16777215 + 50) do: [:each |
>> id := id digitAdd: 1].
>> id.
>>
>> Given the comment it should overflow and the value be 50? This is not what
Hi Holger, sorry, I'm not good at responding to unsorted email in a timely
manner :/
The comment is inaccurate, the wraparound relates to how the number is used in
OID >> #initialize, not the number itself.
lp := LargePositiveInteger new: 3.
lp at: 1 put: 255; at: 2 put: 255; at: 3 put: 255.
lp
Hi,
I tried to reach the author for several weeks but he doesn't seem to respond so
I am trying to reach a wider audience to either confirm my suspicion or to be
corrected. In
http://smalltalkhub.com/#!/~MongoTalkTeam/mongotalk/diff/Mongo-BSON-HenrikSperreJohansen.43
the following change is d