I have following problem:
load(sBinary, 'b')
loads a binary string with _G as his environment,
but I want to load it with a specific environment.
I tested:
load(sBinary, 'b', tEnv)
and
load(sBinary, 'b', 'Binary chunk', tEnv)
Can somebody help me with the arguments?
Sewbacca
P.S. I can't use setfenv and getfenv cause of Lua 5.2 compatibilities.
Edited by Sewbacca, 17 September 2016 - 09:56 AM.












