The Trunk: Kernel-topa.958.mcz

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

The Trunk: Kernel-topa.958.mcz

commits-2
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: ''!