lua-table
New to Lua - Table operation
Can someone explain this to me?I have figured it out through this tutorial that this is known as a table. Coming from a C/C++ back开发者_如何学Goground, can someone explain how this works (I am trying[详细]
2023-01-05 16:07 分类:问答Lua class instance with nested tables
Simple Lua game with simple class like so: creature = clas开发者_开发知识库s({ name = \"MONSTER BADDY!\",[详细]
2023-01-01 07:17 分类:问答Lua table C api
I know of: http://lua-users.org/wiki/SimpleLuaApiExample It shows me how to build up a table (key, value) pair entry by entry.[详细]
2022-12-29 21:44 分类:问答Why do Lua arrays(tables) start at 1 instead of 0?
I don\'t understand the rationale behind the decision of this part of Lua. Why does indexing start at 1? I have read (as many others did) this great paper. It seems to me 开发者_如何转开发a strange co[详细]
2022-12-29 17:25 分类:问答I need a tool to parse Lua tables, preferrably in Ruby or Java
I need a tool to parse Lua table expressions. If all else fails, I will eventually just code a small Lua module to convert tables to XML, but for the time being, I am interested in a Ruby library doin[详细]
2022-12-21 15:37 分类:问答How to check if a table contains an element in Lua?
Is there a method for checking if a table contains a value ? I have my own (naive) function, but I was wondering if something \"official\" exists for that ? Or something more effi开发者_StackOverflow社[详细]
2022-12-20 16:45 分类:问答How to I pass a table from Lua into C++?
How would I pass a table of unknown length from Lua into a bound C++ function? I want to be able to call the Lua function like this:[详细]
2022-12-19 06:02 分类:问答Dynamically assigned table variables?
Writing a function in Lua, which creates two tables. I want the tables to be assigned to the value name with an x added, and one with a y added. For example if name was line, it would create two table[详细]
2022-12-18 13:54 分类:问答Lua's hybrid array and hash table; does it exist anywhere else?
Lua\'s implementation of tables keep its elements in two parts: an array part and a hash part. Does such a thing exist in any other languages?[详细]
2022-12-17 03:44 分类:问答Can't sort table with associative indexes
开发者_如何学GoWhy I can\'t use table.sort to sort tables with associative indexes?In general, Lua tables are pure associative arrays. There is no \"natural\" order other than the as a side effect of[详细]
2022-12-17 01:59 分类:问答
加载中,请稍侯......