[squeak-dev] The Trunk: Compiler-ul.473.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Mar 31 14:52:42 UTC 2022


Levente Uzonyi uploaded a new version of Compiler to project The Trunk:
http://source.squeak.org/trunk/Compiler-ul.473.mcz

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

Name: Compiler-ul.473
Author: ul
Time: 31 March 2022, 4:52:35.531668 pm
UUID: 110ed766-02b6-4cba-9053-f274e0c600ae
Ancestors: Compiler-eem.472

- use Symbol class >> #lookup: instead of #hasInterned:ifTrue:

=============== Diff against Compiler-eem.472 ===============

Item was changed:
  ----- Method: Encoder>>lookupInPools:ifFound: (in category 'private') -----
  lookupInPools: varName ifFound: assocBlock
  
+ 	^(Symbol lookup: varName)
+ 		ifNil: [ false ]
+ 		ifNotNil: [ :symbol |
+ 			(cue bindingOf: symbol)
+ 				ifNil: [ false ]
+ 				ifNotNil: [:assoc|
+ 					assocBlock value: assoc.
+ 					true ]]!
- 	^Symbol
- 		hasInterned: varName
- 		ifTrue:
- 			[:sym|
- 			(cue bindingOf: sym)
- 				ifNil: [^false]
- 				ifNotNil: [:assoc| assocBlock value: assoc]]!



More information about the Squeak-dev mailing list