[Pkg] The Trunk: Compiler-eem.180.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Nov 16 23:21:23 UTC 2010


Eliot Miranda uploaded a new version of Compiler to project The Trunk:
http://source.squeak.org/trunk/Compiler-eem.180.mcz

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

Name: Compiler-eem.180
Author: eem
Time: 16 November 2010, 3:21:08.417 pm
UUID: 1f74b18a-ff12-463a-b255-aacc6363866e
Ancestors: Compiler-ul.179

Fix '#_' == #':=' (a.k.a. http://bugs.squeak.org/view.php?id=7571)

=============== Diff against Compiler-ul.179 ===============

Item was changed:
  ----- Method: Scanner>>xUnderscore (in category 'multi-character scans') -----
  xUnderscore
  	self allowUnderscoreAssignments ifTrue:[ | type |
  		"Figure out if x _foo (no space between _ and foo) 
  		should be a selector or assignment"
  		(((type := self typeTableAt: aheadChar) == #xLetter
  			or:[type == #xDigit or:[type == #xUnderscore]]) 
  			and:[self allowUnderscoreSelectors]) ifFalse:[
  				self step.
  				tokenType := #leftArrow.
+ 				^token := #'_'
- 				^token := #':='
  		].
  	].
  	self allowUnderscoreSelectors ifTrue:[^self xLetter].
+ 	^self xIllegal!
- 	^self xIllegal
- !



More information about the Packages mailing list