The Trunk: Kernel-mt.1370.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-mt.1370.mcz

commits-2
Marcel Taeumel uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-mt.1370.mcz

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

Name: Kernel-mt.1370
Author: mt
Time: 17 February 2021, 5:48:45.447426 pm
UUID: fe073783-4c0c-e345-aebe-4ea80f101f00
Ancestors: Kernel-dtl.1369

Adds commentary for #valueWithExit.

=============== Diff against Kernel-dtl.1369 ===============

Item was changed:
  ----- Method: BlockClosure>>valueWithExit (in category 'evaluating') -----
+ valueWithExit
+ "Provides an exit block to the receiver. Use it to break out of the control flow with an early return. For example:
+ [:exit | 1 to: 10 do: [:each | each > 5 ifTrue: [exit value]]] valueWithExit"
- valueWithExit
   self value: [ ^nil ]!