Posted 03 January 2018 - 11:41 AM
EDIT:I just saw that I post this at the wrong section, if you are a moderator, please move it to Ask a pro. Thanks.
Hi, I am currently making a shell for ComputerCraft, and I am currently facing a problem: How do I set the … to what the shell receives ?
For example:
Thank you and have a nice day, Alex.
Hi, I am currently making a shell for ComputerCraft, and I am currently facing a problem: How do I set the … to what the shell receives ?
For example:
... = arguments; -- This is not possible, but then how CraftOS did set this ?
local env = { ... };
setmetatable(env, { __index = getfenv() });
local initFn, err = assert(loadfile(path, env));
-- check and run
Thank you and have a nice day, Alex.
Edited on 03 January 2018 - 10:45 AM