[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A question about function accessing local and global variables
- From: Jonathan Goble <jcgoble3@...>
- Date: Tue, 25 Aug 2015 22:35:16 -0400
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.)