The Trunk: Collections-cmm.675.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Collections-cmm.675.mcz

commits-2
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!


Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: Collections-cmm.675.mcz

Levente Uzonyi
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!
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: Collections-cmm.675.mcz

Chris Muller-3
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!
>>
>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: Collections-cmm.675.mcz

Chris Muller-3
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....