[Newbies] next or break in a loop

Bert Freudenberg bert at freudenbergs.de
Mon May 9 18:51:23 UTC 2016


On 09.05.2016, at 20:35, Phil (list) <pbpublist at gmail.com> wrote:
> 
> Smalltalk doesn't have a switch/case statement

True, but Squeak does:

	aValue caseOf: {
		[firstValue] -> [firstBlock].
		[secondValue] -> [secondBlock].
	} otherwise: [elseBlock]

- Bert -



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4207 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/beginners/attachments/20160509/ee7a2abb/smime.bin


More information about the Beginners mailing list