[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: nested functions in Lua
- From: Norman Ramsey <nr@...>
- Date: Tue, 8 Dec 1998 11:13:43 -0500
The main change in Lua 3 seems to have been the addition of nested functions.
Can anyone tell me how these have been implemented? I can think of
two obvious strategies. (1) closure analysis in the compiler, allocate
variables on the heap, minimal changes to the interpreter. (2) minimal
changes to the compiler, have the interpreter do all the work when it
How is it actually done?