The Trunk: Kernel-eem.1165.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-eem.1165.mcz

commits-2
Eliot Miranda uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-eem.1165.mcz

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

Name: Kernel-eem.1165
Author: eem
Time: 24 April 2018, 11:19:16.734066 am
UUID: 281c4af1-ffb9-4616-a9ef-a6369143c7b7
Ancestors: Kernel-eem.1162, Kernel-eem.1164

Add a convenience to turn off showing deprecation warnings for the duration of a block.

=============== Diff against Kernel-eem.1164 ===============

Item was added:
+ ----- Method: Deprecation class>>withDeprecationWarningsSuppressed: (in category 'utilities') -----
+ withDeprecationWarningsSuppressed: aBlock
+ | savedShowDeprecationWarnings |
+ savedShowDeprecationWarnings := ShowDeprecationWarnings.
+ ShowDeprecationWarnings := false.
+ ^aBlock ensure: [ShowDeprecationWarnings := savedShowDeprecationWarnings]!