Moderators: They make you lose count(Longest thread still alive!)

  • FTB will be shutting down this forum by the end of July. To participate in our community discussions, please join our Discord! https://ftb.team/discord

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
46 tables->lua's way to group data and functions together, other languages would use arrays/objects
params->the things that you pass to functions like so function(some,params,here)
Xavante passes 3 tables to the function that always gets executed (req,res,cap).
Lapis uses 1 table (app)
My framework uses 1 table(helper)

Currently req,res and cap are "copied" to be included in the helper table. I put the copied in quotes as tables are always passed by reference.
The last thing a function always gets is a reference to the table this function is part off. Other languages would do this automatically but Lua not as it is not a real OOP language (tough you can write code like it is an OOP language).