The Trunk: System-nice.223.mcz

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

The Trunk: System-nice.223.mcz

commits-2
Nicolas Cellier uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-nice.223.mcz

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

Name: System-nice.223
Author: nice
Time: 5 January 2010, 9:33:21 am
UUID: 18e61a44-3325-47a6-8e2d-79d7e5249e6a
Ancestors: System-dtl.222

move a temp assignment outside block scope

=============== Diff against System-dtl.222 ===============

Item was changed:
  ----- Method: SystemChangeNotifier>>doSilently: (in category 'public') -----
  doSilently: aBlock
  "Perform the block, and ensure that no system notification are broadcasted while doing so."
 
  | result |
  silenceLevel := silenceLevel + 1.
+ result := [aBlock value] ensure: [silenceLevel > 0 ifTrue: [silenceLevel := silenceLevel - 1]].
- [result := aBlock value] ensure: [silenceLevel > 0 ifTrue: [silenceLevel := silenceLevel - 1]].
  ^ result.!