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

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


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

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

Name: Kernel-mt.1371
Author: mt
Time: 17 February 2021, 5:56:29.152426 pm
UUID: 1e5b05c3-feb7-e945-a253-3218ee358e74
Ancestors: Kernel-mt.1370

Extracts better examples for #valueWithExit from squeak-dev mailing list.

=============== Diff against Kernel-mt.1370 ===============

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. Examples below.
+ 		[:break | 1 to: 10 do: [:each | each > 5 ifTrue: [break value]]] valueWithExit.
+ 		1 to: 10 do: [:each | [:continue | each > 5 ifTrue: [continue value]] 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"
  	  self value: [ ^nil ]!



More information about the Squeak-dev mailing list