lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Fri, Nov 25, 2005 at 01:35:50PM -0300, Eduardo Ochs wrote:
> Tcl has a function "upvar" that gives access to a variable in an outer
> scope, and a function "uplevel" that runs code in an outer scope.

Note, however, that both of these are dynamically scoped, as opposed
to lexical scoping for Lua upvalues.  I'd therefore use the phrase
"different stack frame" rather than "outer scope" (which suggests
lexical scoping to me) to avoid confusion.

- Adrian