[squeak-dev] The Inbox: Collections-hk.360.mcz

commits at source.squeak.org commits at source.squeak.org
Thu May 20 07:05:39 UTC 2010


A new version of Collections was added to project The Inbox:
http://source.squeak.org/inbox/Collections-hk.360.mcz

==================== Summary ====================

Name: Collections-hk.360
Author: hk
Time: 20 May 2010, 9:04:53.211 am
UUID: 75c4bea4-ca87-3a40-8a74-e89fc5b7b750
Ancestors: Collections-ul.359

changed String isAllDigits to return false on empty strings

=============== Diff against Collections-ul.359 ===============

Item was changed:
  ----- Method: String>>isAllDigits (in category 'testing') -----
  isAllDigits
+ 	"whether the receiver is composed entirely of digits and has at least one digit"
- 	"whether the receiver is composed entirely of digits"
  	self do: [:c | c isDigit ifFalse: [^ false]].
+ 	self ifEmpty: [^false].
  	^ true!




More information about the Squeak-dev mailing list