[squeak-dev] The Trunk: Environments-fbs.26.mcz

commits at source.squeak.org commits at source.squeak.org
Wed May 8 08:55:23 UTC 2013


Frank Shearar uploaded a new version of Environments to project The Trunk:
http://source.squeak.org/trunk/Environments-fbs.26.mcz

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

Name: Environments-fbs.26
Author: fbs
Time: 8 May 2013, 9:54:56.973 am
UUID: 3fa50b5e-b577-4c01-9068-c2ea39b70b56
Ancestors: Environments-cwp.25

I'm not a huge fan of #removeKey: (lack of error handling), but Metacello uses it, and it's part of the expected API for the Smalltalk object.

=============== Diff against Environments-cwp.25 ===============

Item was added:
+ ----- Method: Environment>>errorKeyNotFound: (in category 'private') -----
+ errorKeyNotFound: key
+ 	"Signal KeyNotFound error"
+ 	^(KeyNotFound key: key) signal!

Item was added:
+ ----- Method: Environment>>removeKey: (in category 'emulating') -----
+ removeKey: key 
+ 	"Remove key from the receiver.
+ 	If key is not in the receiver, notify an error."
+ 	self flag: #review.
+ 	^ self removeKey: key ifAbsent: [self errorKeyNotFound: key].!



More information about the Squeak-dev mailing list