[squeak-dev] The Trunk: Kernel-ct.1452.mcz
commits at source.squeak.org
commits at source.squeak.org
Fri Mar 25 20:21:20 UTC 2022
Christoph Thiede uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-ct.1452.mcz
==================== Summary ====================
Name: Kernel-ct.1452
Author: ct
Time: 25 March 2022, 9:20:32.375762 pm
UUID: 341893ac-9032-1c42-a928-9e2eed3a1fa5
Ancestors: Kernel-nice.1447
Adds execution around method for suppressing warnings.
Differently to an exception handler, this can be used to avoid signaling a warning altogether, which is particularly helpful when there is another inner exception handler that cannot be controlled by the client of this message.
=============== Diff against Kernel-nice.1447 ===============
Item was added:
+ ----- Method: Warning class>>suppressDuring: (in category 'suppress and reset') -----
+ suppressDuring: aBlock
+
+ self suppressed ifTrue: [^ aBlock value].
+
+ self suppressed: true.
+ ^ aBlock ensure: [self suppressed: false]!
More information about the Squeak-dev
mailing list
|