[squeak-dev] last block arg as implicit return value?
Chris Muller
ma.chris.m at gmail.com
Mon May 12 15:55:23 UTC 2014
After 20+ years of Smalltalking, I stumbled on this basic block
behavior that surprised me. What would you expect this expression to
return?
| myBlock |
myBlock := [ : arg1 : arg2 | ].
myBlock value: 'hello' value: 'there'
More information about the Squeak-dev
mailing list
|