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

commits at source.squeak.org commits at source.squeak.org
Fri Jul 27 01:08:44 UTC 2012


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

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

Name: Collections-cwp.480
Author: cwp
Time: 26 July 2012, 6:07:30.872 pm
UUID: 746335bc-d901-4860-9347-608c490939cb
Ancestors: Collections-bf.479, Collections-cwp.470

merge cwp.470

Removed the requirement that ReadOnlyVariableBindings can only be used in Smalltalk globals. This makes it possible to create environments other than the root. (Necessary for EnvironmentTest, and eventually, multiple environments.)

=============== Diff against Collections-bf.479 ===============

Item was changed:
  ----- Method: LookupKey>>beBindingOfType:announcing: (in category 'bindings') -----
  beBindingOfType: aClass announcing: aBool
  	"Make the receiver a global binding of the given type"
  
- 	(Smalltalk globals associationAt: self key) == self
- 		ifFalse:[^self error:'Not a global variable binding'].
  	self class == aClass ifTrue:[^self].
  	self becomeForward: (aClass key: self key value: self value).
  	"NOTE: Now self == read-only (e.g., the new binding)"
  	^self recompileBindingsAnnouncing: aBool!



More information about the Squeak-dev mailing list