lua-users home
lua-l archive

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


On Tue, Aug 25, 2015 at 10:28 PM, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> _G is the global environment, essentially a table of all global
>> variables. It behaves as an ordinary table
>
> The global environment *is* an ordinary Lua table.

Ah, that makes sense. I've never had a reason to dig into the C
internals, so didn't know that. (I use Lua purely as a stand-alone
language for personal scripts and MediaWiki templates, and don't know
anything about C.)