Re: [Pharo-users] Mongo-BSON OID LargePositiveInteger increase

2016-05-31 Thread Henrik Johansen
> 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

Re: [Pharo-users] Mongo-BSON OID LargePositiveInteger increase

2016-05-31 Thread Holger Freyther
> 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 =>

Re: [Pharo-users] Mongo-BSON OID LargePositiveInteger increase

2016-05-30 Thread Henrik Johansen
> 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

Re: [Pharo-users] Mongo-BSON OID LargePositiveInteger increase

2016-05-30 Thread Henrik Johansen
> 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

Re: [Pharo-users] Mongo-BSON OID LargePositiveInteger increase

2016-05-30 Thread Henrik Johansen
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

[Pharo-users] Mongo-BSON OID LargePositiveInteger increase

2016-05-30 Thread Holger Freyther
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