Marcel Taeumel uploaded a new version of Environments to project The Trunk:
http://source.squeak.org/trunk/Environments-mt.74.mcz==================== Summary ====================
Name: Environments-mt.74
Author: mt
Time: 12 July 2019, 9:57:37.434568 am
UUID: b2ca73b4-da07-6347-bf46-d721c411037b
Ancestors: Environments-pre.73
Refactoring of #literalsDo: - Step 1 of 3.
For more information, see
http://forum.world.st/Please-Review-Refactoring-for-literalsDo-etc-tp5099756p5100896.html.
=============== Diff against Environments-pre.73 ===============
Item was changed:
+ ----- Method: Alias>>literalEqual: (in category 'literals') -----
- ----- Method: Alias>>literalEqual: (in category 'error handling') -----
literalEqual: other
"Two aliases are equal if they have the same source"
^ self species = other species and: [self source == other source]!
Item was added:
+ ----- Method: Binding>>allLiteralsDo: (in category 'literals') -----
+ allLiteralsDo: aBlock
+
+ "I am a literal."
+ aBlock value: self.
+
+ self key allLiteralsDo: aBlock.
+ self value allLiteralsDo: aBlock.!
Item was changed:
+ ----- Method: ClassBinding>>literalEqual: (in category 'literals') -----
- ----- Method: ClassBinding>>literalEqual: (in category 'comparing') -----
literalEqual: other
"Class bindings are equal when the bind the same class"
^ self species = other species and: [self value = other value]!
Item was changed:
+ ----- Method: Global>>literalEqual: (in category 'literals') -----
- ----- Method: Global>>literalEqual: (in category 'comparing') -----
literalEqual: other
"Globals are only equal to themselves, since another global with the same
name could have a different value in the future."
^ self == other!