When print(_ENV)
is used in zerobrane studio on windows, it results into nil. Can we set _ENV variable to its expected use? As an example of code,
a = 15 -- create a global variable
_ENV = {g = _G} -- change current environment
a = 1 -- create a field in _ENV
g.print(_ENV.a, g.a)
This code throws the error in zerobrane studio on windows.