How would I save a Lua table or a function for later use?
Newcomers are puzzled that there is no lua_totable or lua_tofunction corresponding to lua_tostring, etc. This is because Lua does not expose a general ‘Lua object’ type; all values are passed using the stack. The registry provides a mechanism for saving references to tables or Lua functions, however.
Related Questions
- Can the cachecard be used just as a network card and then later on add the memory to use the caching part? Or must the memory be present for it to function at all?
- Is the number returned from the probe decrement function added or subtracted when moving through the table?
- What is the function of GL_DATE_PERIOD_MAP table and how is it populated?