Chris Muller uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-cmm.675.mcz ==================== Summary ==================== Name: Collections-cmm.675 Author: cmm Time: 3 January 2016, 3:33:44.302 pm UUID: d019e6cc-abbb-4077-9e3d-2f471f6fb07a Ancestors: Collections-eem.672 grownBy: should answer the same class of object asked to be grown. =============== Diff against Collections-eem.672 =============== Item was changed: ----- Method: SequenceableCollection>>grownBy: (in category 'copying') ----- + grownBy: length - grownBy: length "Answer a copy of receiver collection with size grown by length" + ^ (self class ofSize: self size + length) + replaceFrom: 1 to: self size with: self startingAt: 1 ; + yourself! - - | newCollection | - newCollection := self species ofSize: self size + length. - newCollection replaceFrom: 1 to: self size with: self startingAt: 1. - ^ newCollection! |
Collections has two head versions now: cmm-674 and cmm-675. The should be
merged. Levente On Sun, 3 Jan 2016, [hidden email] wrote: > Chris Muller uploaded a new version of Collections to project The Trunk: > http://source.squeak.org/trunk/Collections-cmm.675.mcz > > ==================== Summary ==================== > > Name: Collections-cmm.675 > Author: cmm > Time: 3 January 2016, 3:33:44.302 pm > UUID: d019e6cc-abbb-4077-9e3d-2f471f6fb07a > Ancestors: Collections-eem.672 > > grownBy: should answer the same class of object asked to be grown. > > =============== Diff against Collections-eem.672 =============== > > Item was changed: > ----- Method: SequenceableCollection>>grownBy: (in category 'copying') ----- > + grownBy: length > - grownBy: length > "Answer a copy of receiver collection with size grown by length" > + ^ (self class ofSize: self size + length) > + replaceFrom: 1 to: self size with: self startingAt: 1 ; > + yourself! > - > - | newCollection | > - newCollection := self species ofSize: self size + length. > - newCollection replaceFrom: 1 to: self size with: self startingAt: 1. > - ^ newCollection! > > > |
I purposefully left 674 out of the ancestry, because I want useless
commits in our ancestry. I'll remove it from the repository. On Mon, Jan 4, 2016 at 8:11 AM, Levente Uzonyi <[hidden email]> wrote: > Collections has two head versions now: cmm-674 and cmm-675. The should be > merged. > > Levente > > > On Sun, 3 Jan 2016, [hidden email] wrote: > >> Chris Muller uploaded a new version of Collections to project The Trunk: >> http://source.squeak.org/trunk/Collections-cmm.675.mcz >> >> ==================== Summary ==================== >> >> Name: Collections-cmm.675 >> Author: cmm >> Time: 3 January 2016, 3:33:44.302 pm >> UUID: d019e6cc-abbb-4077-9e3d-2f471f6fb07a >> Ancestors: Collections-eem.672 >> >> grownBy: should answer the same class of object asked to be grown. >> >> =============== Diff against Collections-eem.672 =============== >> >> Item was changed: >> ----- Method: SequenceableCollection>>grownBy: (in category 'copying') >> ----- >> + grownBy: length >> - grownBy: length >> "Answer a copy of receiver collection with size grown by length" >> + ^ (self class ofSize: self size + length) >> + replaceFrom: 1 to: self size with: self startingAt: 1 ; >> + yourself! >> - >> - | newCollection | >> - newCollection := self species ofSize: self size + length. >> - newCollection replaceFrom: 1 to: self size with: self startingAt: >> 1. >> - ^ newCollection! >> >> >> > |
On Mon, Jan 4, 2016 at 10:25 AM, Chris Muller <[hidden email]> wrote:
> I purposefully left 674 out of the ancestry, because I want useless Because I DON'T want.... |
Free forum by Nabble | Edit this page |