|
Jeff Wise wrote:
I have a program that does: assert(loadfile(“c:\\lua\\source\dummy2.lua”))()The code works as designed. (This is Win/XP) However, I want to send it two parameters:parm1 = “football” parm2 = “soccer”How do I do this? All combinations I’ve tried fail. If I send the first program command line arguments, it works as expected. But I can’t create arguments in the first program to send the second program.
assert(loadfile("dummy2.lua"))("football", "soccer") ----- dummy2.lua print("dummy2") print(...)