Re: _ENV vs _G
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: _ENV vs _G
- From: "Ashwin Hirschi" <lua-l@...>
- Date: 2014年8月11日 22:35:12 +0200
This means you can write code like this in Lua:
foo = 10
local _ENV = { foo=20 }
print(foo)
You can write it, but it won't run... [since there's no more print! ;-)]
Ashwin.