[squeak-dev] The Inbox: Kernel-ct.1385.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Apr 12 20:15:10 UTC 2021


A new version of Kernel was added to project The Inbox:
http://source.squeak.org/inbox/Kernel-ct.1385.mcz

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

Name: Kernel-ct.1385
Author: ct
Time: 12 April 2021, 10:15:07.18369 pm
UUID: e2817a6e-1a1f-e246-aa66-2fa9289a7703
Ancestors: Kernel-nice.1384

Improves multilingual support for basic errors on Object.

=============== Diff against Kernel-nice.1384 ===============

Item was changed:
  ----- Method: Object>>error (in category 'error handling') -----
  error
  	"Throw a generic Error exception."
  
+ 	^ self error: 'Error!!' translated!
- 	^self error: 'Error!!'.!

Item was changed:
  ----- Method: Object>>errorImproperStore (in category 'private') -----
  errorImproperStore
  	"Create an error notification that an improper store was attempted."
  
+ 	^ self error: 'Improper store into indexable object' translated!
- 	self error: 'Improper store into indexable object'!

Item was changed:
  ----- Method: Object>>errorNonIntegerIndex (in category 'private') -----
  errorNonIntegerIndex
  	"Create an error notification that an improper object was used as an index."
  
+ 	^ self error: 'Only integers should be used as indices' translated!
- 	self error: 'only integers should be used as indices'!

Item was changed:
  ----- Method: Object>>errorSubscriptBounds: (in category 'private') -----
  errorSubscriptBounds: index 
  	"Create an error notification that an improper integer was used as an index."
  
+ 	^ self error: ('Subscript is out of bounds: {1}' translated format: {index})!
- 	self error: 'subscript is out of bounds: ' , index printString!



More information about the Squeak-dev mailing list