[squeak-dev] The Trunk: Kernel-topa.958.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Oct 8 18:46:07 UTC 2015


Tobias Pape uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-topa.958.mcz

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

Name: Kernel-topa.958
Author: topa
Time: 8 October 2015, 8:45:43 pm
UUID: b5dcf2e4-db27-445f-8d24-aafbedcf1177
Ancestors: Kernel-topa.957

Allow simple, message-less deprecations

=============== Diff against Kernel-topa.957 ===============

Item was changed:
  ----- Method: Deprecation class>>maybeSignalDeprecationFor:message:explanation: (in category 'utilities') -----
  maybeSignalDeprecationFor: context message: messageString explanation: explanationString
+ 	self showDeprecationWarnings ifTrue:
+ 		[ | message |
+ 		message := context method reference, ' has been deprecated', messageString, '.'.
+ 		explanationString ifNotEmpty: [message := message, ' ', explanationString].
+ 		self signal: message].!
- 	ShowDeprecationWarnings == true ifTrue:
- 		[self signal: context method reference, ' has been deprecated', messageString, '. ', explanationString]!

Item was added:
+ ----- Method: Object>>deprecated (in category 'error handling') -----
+ deprecated
+ 	"Warn that the sending method has been deprecated."
+ 
+ 	Deprecation
+ 		maybeSignalDeprecationFor: thisContext sender
+ 		message: ''
+ 		explanation: ''!



More information about the Squeak-dev mailing list