[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: LuaState and library layout
- From: Thijs Schreijer <thijs@...>
- Date: Mon, 7 Jan 2013 14:36:03 +0000
>
> "Upvalues are local to the combination of a LuaState and a C library"
>
> -- I thought upvalues where specific to a lua function (or more
> specifically a closure).
>
Thx for the hint. I updated it with a link.
You are right on the Lua side, but there are also upvalues on the C side; http://www.lua.org/manual/5.1/manual.html#3.4
The header already stated: "Static variables vs upvalues (for C functions)", but I now added a link.