Menu

#19 Invoking script with arguments doesn't pass to {...}

v3.0-beta1
wont-fix
nobody
None
5
2015-03-14
2013-07-26
Qix
No

In Lua, passing arguments to script via something such as lua_pcall() enables scripts to reference these values using something along the lines of local params = {...}.

However, LuaJ does not pass these values to the script.

This can be recreated by loading a script in LuaJ (on the Java side) by calling globals.baselib.load[Stream] and calling the returned closure with arguments.

A for i,v in pairs({...}) do print(i..': '..v) end only shows the script name and the path as the first two arguments; nothing else.

Discussion

  • Qix

    Qix - 2013-07-29

    Not a bug: Use invoke with a LuaValue[] parameter. Works as expected.

     
  • James Roseborough

    • status: open --> wont-fix
     
  • James Roseborough

    Closing as this is not considered a bug.

     

Log in to post a comment.