[squeak-dev] last block arg as implicit return value?
Louis LaBrunda
Lou at Keystone-Software.com
Mon May 12 20:52:52 UTC 2014
I would expect nil. When I check VA Smalltalk, nil it is.
Lou
>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'
>
-----------------------------------------------------------
Louis LaBrunda
Keystone Software Corp.
SkypeMe callto://PhotonDemon
mailto:Lou at Keystone-Software.com http://www.Keystone-Software.com
More information about the Squeak-dev
mailing list
|