[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Flush the term upvalue from 5.1 manual
- From: Adrian Ho <lua-l@...>
- Date: Sat, 26 Nov 2005 01:12:02 +0800
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.