nodemcu-linux icon indicating copy to clipboard operation
nodemcu-linux copied to clipboard

`function(...)` compatibility

Open Spiritdude opened this issue 7 years ago • 0 comments

Perhaps a Lua wizard can help me out:

  • function(...) in Lua 5.1 (NodeMCU/ESP8266 and NodeMCU/ESP32) the table variable arg is set within the function
  • luajit does not set arg, but one accesses it via arg = {...} and does with it further
  • lua5.1 does set arg

I currently used (...) and then arg a lot in NodeMCU-Shell.

What is the best way to deal with this, also in regards when newer Lua version is used in NodeMCU/*?

Spiritdude avatar Feb 25 '18 17:02 Spiritdude