[squeak-dev] last block arg as implicit return value?

blake dsblakewatson at gmail.com
Mon May 12 15:58:19 UTC 2014


>> | myBlock |
>> myBlock := [ : arg1 : arg2 | ].
>> myBlock value: 'hello' value: 'there'

nil

Because the block isn't returning a value and the last line is calling the
block.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20140512/3e9899a3/attachment.htm


More information about the Squeak-dev mailing list