Y
Hacker News
new
|
ask
|
show
|
jobs
by
EdwardCoffin
884 days ago
Smalltalk only allows the return from the block's lexically enclosing method, not an arbitrarily specifiable context like Common Lisp does. It's discussed a bit on c2.com [1]
[1]
https://wiki.c2.com/?SmalltalkBlockReturn
1 comments
xkriva11
884 days ago
In Pharo or Squeak, you can just send the "return:" message to any context (except contexts that have nowhere to return).
link