Re: Flush the term upvalue from 5.1 manual
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Flush the term upvalue from 5.1 manual
- From: Ralph Hempel <rhempel@...>
- Date: 2005年11月25日 12:08:13 -0500
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.
I was going to mention this, but I think the difference is that
Lua uses lexical scope, where Tcl's use of upvar and uplevel is
through a procedure call stack frame.
Slight difference in semantics, but same general idea of being
able to reference things outside of some type of local
scope.
Ralph