I've looked at _G but that doesn't seem to work.
For example, the following code list all the standard variables and functions (e.g. 'os', 'math', etc) but not 'aFunction' or 'aVariable'. What can I use to get them.
aVariable = "Hello" function aFunction (message) print(message) end for key, value in pairs(_G) do print(key) print(value) end
If you have a better idea on how to add all the functions to the environment please suggest it.












