import net.luaos.tb.tb12.Sandbox; import net.luaos.tb.remote.ServerConnection; import org.luaj.vm2.*; import org.luaj.vm2.lib.*; static Sandbox luaSandbox(O... outer) { Sandbox s = new Sandbox(ServerConnection.aServerConnection()); for (int i = 0; i+1 < l(outer); i += 2) s.setOuter((S) outer[i], (LuaValue) outer[i+1]); ret s; }
Began life as a copy of #1003155
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003156 |
Snippet name: | luaSandbox |
Eternal ID of this version: | #1003156/1 |
Text MD5: | f9e6450838bc9caa3c54094320d4305b |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-08-28 16:17:28 |
Source code size: | 352 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 649 / 648 |
Referenced in: | #1003160 - luaMaxSteps #1006654 - Standard functions list 2 (LIVE, continuation of #761) |