The Trunk: Collections-cwp.480.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Collections-cwp.480.mcz

commits-2
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!