Top "Lua-table" questions

This tag refers to the table type in Lua that implements associative arrays.

How special is the global variable _G?

Excerpt from Lua 5.3 manual: _G A global variable (not a function) that holds the global environment (see §2.2). Lua itself does …

lua global-variables environment lua-table
How do I create a Lua Table in C++, and pass it to a Lua function?

In C++, I have a map<string, string>, containing an unknown number of entries. How can I pass …

c++ string map lua lua-table
Lua - convert a table into a comma separated list

I need to convert a table into a comma separated list in order to save it to a text file. …

csv lua lua-table
Is there a (simple) way to get the memory usage of a Lua table?

I'd like to find out how much memory a Lua table is using - without iterating through the table contents …

memory-management lua lua-table
How to parse protobuf packets in Wireshark

My goal is to have a plugin/dissector that can parse a protocol based on protobuf (UDP). I found on …

python lua wireshark lua-table tshark
table.unpack() only returns the first element

Could somebody explain to me why table.unpack() returns the first table element only when it is used in a …

lua lua-table
Fast implementation of queues in Lua?

I am making a game using Lua and I need to use Breadth-first search to implement a fast path-finding algorithm …

lua queue path-finding breadth-first-search lua-table
Lua: How to look up in a table where the keys are tables (or objects)

I want to store a lua table where the keys are other lua tables. I know that this is possible …

lua hashtable lua-table
Lua - attempt to index local 'lvlObj' (a userdata value)

I am a newbie programmer, just starting out with lua and Defold, and basically I have a table called objects, …

lua lua-table defold
Enumerations within Lua?

I have a new question for you all, I am wondering if you're able to do enumartions within Lua, I …

lua lua-table