level 3
chaosink
楼主
PiL146页的第一段:
For Lua, _G is a name like any other. Its only special status happens when Lua
creates the initial global table and assigns this table to the global variable _G. Lua does not care about the current value of this variable. But it is customary
to use this same name whenever we have a reference to the global environment,
as we did in the rewritten example.
我感觉这里说的_G的special status并没有什么special嘛。大家怎么看?
2015年09月21日 10点09分
1
For Lua, _G is a name like any other. Its only special status happens when Lua
creates the initial global table and assigns this table to the global variable _G. Lua does not care about the current value of this variable. But it is customary
to use this same name whenever we have a reference to the global environment,
as we did in the rewritten example.
我感觉这里说的_G的special status并没有什么special嘛。大家怎么看?