[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lightweight function syntax (again) Re: [ANN] Lua 5.2.0 (alpha-rc2) now available
- From: Pierre-Yves Gérardy <pygy79@...>
- Date: Wed, 24 Nov 2010 16:05:22 +0100
On Sun, Nov 21, 2010 at 19:52, Mark Hamburg <mark@grubmah.com> wrote:
> (Smalltalk has two return operators. One returns a value from the block. The other returns from the context in which the block was created.)
This could be generalised as
return[n]
where n is the stack level (comparable to setfenv in 5.1)
There has been talks about generalising break in a similar way. It
could perhaps be made to work from function expressions as well.
-- Pierre-Yves