The Trunk: System-ar.285.mcz

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

The Trunk: System-ar.285.mcz

commits-2
Andreas Raab uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-ar.285.mcz

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

Name: System-ar.285
Author: ar
Time: 9 March 2010, 4:47:35.265 pm
UUID: 5ca1f4b5-80c7-a742-aacc-429ac9311c20
Ancestors: System-ar.284

Add SystemDictionary>>at:ifAbsentPut: as member of the at:[put:|ifAbsent:|ifPresent:] family of supported methods for accessing globals. Used (for example) by Tweak.

=============== Diff against System-ar.284 ===============

Item was added:
+ ----- Method: SmalltalkImage>>at:ifAbsentPut: (in category 'accessing') -----
+ at: aKey ifAbsentPut: aBlock
+ "Return the global at the given key.
+ If key is not included in the receiver store the result
+ of evaluating aBlock as new value."
+
+ ^globals at: aKey ifAbsentPut: aBlock!