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

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Mon May 12 17:05:25 UTC 2014


I think I remember it was either the first or last parameter that was
returned in old implementation

It's a known problem: http://bugs.squeak.org/view.php?id=5793

but I would have thought that this was fixed with Eliot's closure...



2014-05-12 17:58 GMT+02:00 blake <dsblakewatson at gmail.com>:

> >> | 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/a0db07a9/attachment.htm


More information about the Squeak-dev mailing list