diff options
Diffstat (limited to 'ClientHamr/GuiLua/skang.lua')
-rw-r--r-- | ClientHamr/GuiLua/skang.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua index 6f06131..2b21cb9 100644 --- a/ClientHamr/GuiLua/skang.lua +++ b/ClientHamr/GuiLua/skang.lua | |||
@@ -157,6 +157,8 @@ end | |||
157 | 157 | ||
158 | -- Call this now so that from now on, this is like any other module. | 158 | -- Call this now so that from now on, this is like any other module. |
159 | local _M = moduleBegin('skang', 'David Seikel', 'Copyright 2014 David Seikel', '0.1', '2014-03-27 02:57:00') | 159 | local _M = moduleBegin('skang', 'David Seikel', 'Copyright 2014 David Seikel', '0.1', '2014-03-27 02:57:00') |
160 | -- TODO - While it is possible to get LuaJIT version info, need to load the 'jit' module, which wont work so well if we are not in LuaJIT. | ||
161 | -- local jit = require 'jit'; jit.version; jit.version_num; jit.os; jit.arch | ||
160 | print('Skang is running under Lua version ' .. _VERSION) | 162 | print('Skang is running under Lua version ' .. _VERSION) |
161 | 163 | ||
162 | 164 | ||
@@ -685,3 +687,4 @@ access to the module. | |||
685 | -- Gotta check out this _ENV thing, 5.2 only. Seems to replace the need for setfenv(). Seems like setfenv should do what we want, and is more backward compatible. | 687 | -- Gotta check out this _ENV thing, 5.2 only. Seems to replace the need for setfenv(). Seems like setfenv should do what we want, and is more backward compatible. |
686 | -- "_ENV is not supported directly in 5.1, so its use can prevent a module from remaining compatible with 5.1. | 688 | -- "_ENV is not supported directly in 5.1, so its use can prevent a module from remaining compatible with 5.1. |
687 | -- Maybe you can simulate _ENV with setfenv and trapping gets/sets to it via __index/__newindex metamethods, or just avoid _ENV." | 689 | -- Maybe you can simulate _ENV with setfenv and trapping gets/sets to it via __index/__newindex metamethods, or just avoid _ENV." |
690 | -- LuaJIT doesn't support _ENV anyway. | ||