[Pkg] The Trunk: Environments-bf.12.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Jan 10 00:17:39 UTC 2013

Bert Freudenberg uploaded a new version of Environments to project The Trunk:

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

Name: Environments-bf.12
Author: bf
Time: 9 January 2013, 4:16:32.604 pm
UUID: 6c062187-89cf-4350-b0f3-28c0ad57fc37
Ancestors: Environments-fbs.11

Environment>>bindingOf: must not answer undeclared bindings. E.g., in my case a binding in undeclared shadowed a perfectly fine class variable higher up in the class hierarchy.

=============== Diff against Environments-fbs.11 ===============

Item was changed:
  ----- Method: Environment>>bindingOf:ifAbsent: (in category 'binding') -----
  bindingOf: aSymbol ifAbsent: aBlock
  	lookup do:
  		[:dict | 
  		(dict includesKey: aSymbol) ifTrue: 
  			[^ dict associationAt: aSymbol]].
+ 	^ aBlock value!
- 	^ undeclared associationAt: aSymbol ifAbsent: aBlock!

More information about the Packages mailing list