[squeak-dev] The Trunk: Kernel-mt.1370.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Feb 17 16:48:48 UTC 2021


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 ]!



More information about the Squeak-dev mailing list