Fwd: [squeak-dev] The Trunk: Collections-nice.167.mcz

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

Fwd: [squeak-dev] The Trunk: Collections-nice.167.mcz

Stéphane Ducasse


Begin forwarded message:

> From: Nicolas Cellier <[hidden email]>
> Date: October 19, 2009 3:00:19 PM GMT+02:00
> To: Stéphane Ducasse <[hidden email]>, stephane ducasse <[hidden email]
> >
> Subject: Fwd: [squeak-dev] The Trunk: Collections-nice.167.mcz
>
> Salut bis,
>
> Minor change to be integrated in pharo...
>
> Nicolas
>
> ---------- Forwarded message ----------
> From:  <[hidden email]>
> Date: 2009/10/19
> Subject: [squeak-dev] The Trunk: Collections-nice.167.mcz
> To: [hidden email]
>
>
> Nicolas Cellier uploaded a new version of Collections to project The  
> Trunk:
> http://source.squeak.org/trunk/Collections-nice.167.mcz
>
> ==================== Summary ====================
>
> Name: Collections-nice.167
> Author: nice
> Time: 19 October 2009, 12:32:29 pm
> UUID: 95819d6c-2419-0244-bce5-75e402e44ec3
> Ancestors: Collections-ar.166
>
> http://bugs.squeak.org/view.php?id=7362
> use self class instead of Text, so that we can subclass Text
>
> =============== Diff against Collections-ar.166 ===============
>
> Item was changed:
>  ----- Method: Text>>reversed (in category 'converting') -----
>  reversed
>
>        "Answer a copy of the receiver with element order reversed."
>
>        ^ self class string: string reversed runs: runs reversed.
>
>    "  It is assumed that  self size = runs size  holds. "!
>
> Item was changed:
>  ----- Method: Text>>copyFrom:to: (in category 'copying') -----
>  copyFrom: start to: stop
>        "Answer a copied subrange of the receiver."
>
>        | realStart realStop |
>        stop > self size
>                ifTrue: [realStop := self size]         "handle
> selection at end of string"
>                ifFalse: [realStop := stop].
>        start < 1
>                ifTrue: [realStart := 1]                        "handle
> selection before start of string"
>                ifFalse: [realStart := start].
> +       ^self class
> -       ^Text
>                string: (string copyFrom: realStart to: realStop)
>                runs: (runs copyFrom: realStart to: realStop)!


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: [squeak-dev] The Trunk: Collections-nice.167.mcz

Nicolas Cellier
This one is already in Pharo (md 7/24/2009)

2009/10/19 Stéphane Ducasse <[hidden email]>:

>
>
> Begin forwarded message:
>
>> From: Nicolas Cellier <[hidden email]>
>> Date: October 19, 2009 3:00:19 PM GMT+02:00
>> To: Stéphane Ducasse <[hidden email]>, stephane ducasse <[hidden email]
>> >
>> Subject: Fwd: [squeak-dev] The Trunk: Collections-nice.167.mcz
>>
>> Salut bis,
>>
>> Minor change to be integrated in pharo...
>>
>> Nicolas
>>
>> ---------- Forwarded message ----------
>> From:  <[hidden email]>
>> Date: 2009/10/19
>> Subject: [squeak-dev] The Trunk: Collections-nice.167.mcz
>> To: [hidden email]
>>
>>
>> Nicolas Cellier uploaded a new version of Collections to project The
>> Trunk:
>> http://source.squeak.org/trunk/Collections-nice.167.mcz
>>
>> ==================== Summary ====================
>>
>> Name: Collections-nice.167
>> Author: nice
>> Time: 19 October 2009, 12:32:29 pm
>> UUID: 95819d6c-2419-0244-bce5-75e402e44ec3
>> Ancestors: Collections-ar.166
>>
>> http://bugs.squeak.org/view.php?id=7362
>> use self class instead of Text, so that we can subclass Text
>>
>> =============== Diff against Collections-ar.166 ===============
>>
>> Item was changed:
>>  ----- Method: Text>>reversed (in category 'converting') -----
>>  reversed
>>
>>        "Answer a copy of the receiver with element order reversed."
>>
>>        ^ self class string: string reversed runs: runs reversed.
>>
>>    "  It is assumed that  self size = runs size  holds. "!
>>
>> Item was changed:
>>  ----- Method: Text>>copyFrom:to: (in category 'copying') -----
>>  copyFrom: start to: stop
>>        "Answer a copied subrange of the receiver."
>>
>>        | realStart realStop |
>>        stop > self size
>>                ifTrue: [realStop := self size]         "handle
>> selection at end of string"
>>                ifFalse: [realStop := stop].
>>        start < 1
>>                ifTrue: [realStart := 1]                        "handle
>> selection before start of string"
>>                ifFalse: [realStart := start].
>> +       ^self class
>> -       ^Text
>>                string: (string copyFrom: realStart to: realStop)
>>                runs: (runs copyFrom: realStart to: realStop)!
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project