Mutliple Return Values [was: Re: Why we should remove {} from Squeak]

Richard A. O'Keefe ok at atlas.otago.ac.nz
Thu Oct 4 04:31:05 UTC 2001


Dan Ingalls <Dan at SqueakLand.org> wrote:
	originalTree splitBefore: splitBlock
	    beforeAndAfter: [:tree1 :tree2 | ...]
	
	When I need this kind of multiple return,
	this is my choice for how to do it.
	
I am used to doing this in Scheme.  If it is considered good style in
Smalltalk I shall be more than happy to adopt it.

The use of blocks for receiving multiple "results" probably belongs in
a tutorial somewhere.
	




More information about the Squeak-dev mailing list