Unpublished paper on Lua closure design

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Unpublished paper on Lua closure design

Dibyendu Majumdar
Hi,

I have been looking for a detailed description of how closures are
implemented in Lua, and found this document which appears to be an
unpublished draft version:

http://www.cs.tufts.edu/~nr/cs257/archive/roberto-ierusalimschy/closures-draft.pdf

I have read through the other papers but this one appears to go into
greater detail. Is it possible to add this document to the list of Lua
papers?

Thanks and Regards
Dibyendu

Reply | Threaded
Open this post in threaded view
|

Re: Unpublished paper on Lua closure design

Nagaev Boris
Very interesting! Thanks!

The paper says Java doesn't provide nested functions, but new Java does.

On 8 Jan 2017 12:41 pm, "Dibyendu Majumdar" <[hidden email]> wrote:
Hi,

I have been looking for a detailed description of how closures are
implemented in Lua, and found this document which appears to be an
unpublished draft version:

http://www.cs.tufts.edu/~nr/cs257/archive/roberto-ierusalimschy/closures-draft.pdf

I have read through the other papers but this one appears to go into
greater detail. Is it possible to add this document to the list of Lua
papers?

Thanks and Regards
Dibyendu

Reply | Threaded
Open this post in threaded view
|

Re: Unpublished paper on Lua closure design

Roberto Ierusalimschy
> The paper says Java doesn't provide nested functions, but new Java does.

Yes, things changed since then. but even now nested functions in Java
cannot capture external variables (only external values).

-- Roberto