I was looking at sol's stats logger lua script and couldn't understand one thing, i hope it can be explained by someone. In the extra lib dblib.lua the table containing the functions, each function uses a variable called 'c' what is this? i.e:
DB:Connect("dbname", "dbuser", "dbpassword", "dbhost", 3306)
['Connect'] = function ( c, DBName, DBUser, DBPass, DBAddr, Port )
require "luasql.mysql"
c.env = assert( luasql.mysql() )
c.con = assert(c.env:connect(DBName, DBUser, DBPass, DBAddr, Port))
end,
i hope sol doesn't mind me posting snippets what is c doing? some sort of namespace?