[squeak-dev] The Trunk: Collections-cwp.485.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Aug 13 23:27:15 UTC 2012


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 = $:]]!



More information about the Squeak-dev mailing list