lua
Yielding a thread from another thread (lua)
I am trying to create a sleep function for Lua, since m开发者_如何学编程y Lua-Scripts all run in a different thread/environment I wanted to yield their thread and restart from the main thread when the[详细]
2023-04-01 23:53 分类:问答How to sync Lua and C++ garbage collection
I am trying to embed lua in an existing C++ application and have made a standard procedure for it by inheriting from a开发者_高级运维 class that does the work.[详细]
2023-04-01 20:54 分类:问答Beginner LuaPlus Metatables Question
I\'m brand new to Lua/LuaPlus and trying to figure out how metatables work. In this code taken from the manual:[详细]
2023-04-01 20:08 分类:问答How can levels be dynamicaly/randomly generated in corona SDK (Lua)
Like in this app. http://www.youtube.com/watch?v=FdaTyLrNYOo I see the sprite is kept on the same x axis and the level moves to the left.[详细]
2023-04-01 19:08 分类:问答How do I display array elements in Lua?
I\'m having an issue displaying the elements of an array in Lua programming language. Basically, i created an array with 3 elements, and i\'m trying to display its contents in a for loop on the corona[详细]
2023-04-01 03:16 分类:问答Odd Problem with luabind::object
I\'m currently using luabind, specifically https://github.com/rpavlik/luabind since the official release is outdated and doesn\'t compile with the latest version of boost anymore.[详细]
2023-03-31 19:33 分类:问答What are the benefits of coroutines?
I\'ve been learning some lua for game development. I heard about coroutines in other languages but really came up on them in lua. I just don\'t really understand how useful they are, I heard开发者_如何[详细]
2023-03-31 14:46 分类:问答Strange table error in Lua
Okay, so I\'ve got a strange problem with the following Lua code: function quantizeNumber(i, step) local d = i / step[详细]
2023-03-31 10:29 分类:问答Strange for loop problem
I\'m not sure if this is a bug or not, so I thought that maybe you folks might want to take a look. The problem lies with this code:[详细]
2023-03-31 10:12 分类:问答Lua: Escaping literal % inside string.gsub and the capture %2
Basic question but I\'ve been trying to figure out for a while with no luck. I am processing urls and need to do a simple replacement.[详细]
2023-03-31 06:39 分类:问答