The Trunk: Collections-cwp.485.mcz

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

The Trunk: Collections-cwp.485.mcz

commits-2
Colin Putney uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-cwp.485.mcz

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

Name: Collections-cwp.485
Author: cwp
Time: 13 August 2012, 4:26:44.077 pm
UUID: 4eca145f-ba2c-4c38-aa1c-3f6b8f6a9e1b
Ancestors: Collections-fbs.483

Make Character>>tokenish honour the underscore selectors preference.

=============== Diff against Collections-fbs.483 ===============

Item was changed:
  ----- Method: Character>>tokenish (in category 'testing') -----
  tokenish
  "Answer whether the receiver is a valid token-character--letter, digit, or
  colon."
 
+ ^ self == $_
+   ifTrue: [ Scanner prefAllowUnderscoreSelectors ]
+   ifFalse: [ self == $: or: [ self isLetter or: [ self isDigit ] ] ]!
- ^self isLetter or: [self isDigit or: [self = $:]]!