Sequenceable>>startsWith: start
| comp |
self size < start size ifTrue: [^ false].
comp := true.
(self first: start size) with: start
do: [:ea :ea2 | ea = ea2 ifFalse: [comp := false]].
^ comp
And indeed with should use deprecate:...
Stef
On Oct 13, 2008, at 4:34 PM, Damien Pollet wrote:
On Thu, Oct 9, 2008 at 12:54 AM, nicolas cellier
<[EMAIL PROTECTED]> wrote:
http://bugs.squeak.org/view.php?id=6994
deprecate the Service related #startsWith: because single implementor
completely redundant with beginsWith:
#startsWith: is not there anymore but it's still used (e.g. by the
mercury field in OB)
--
Damien Pollet
type less, do more [ | ] http://people.untyped.org/damien.pollet
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project