I have a table that stores file names, for example:
1.jpg
5.jpg< br />4.jpg
10.jpg
2.jpg Now I want to sort it. I used the following code:
table.sort(myTable )
The result is
1.jp
I have a table that stores file names, for example:
1.jpg
5.jpg< br />4.jpg
10.jpg
2.jpg Now I want to sort it. I used the following code:
table.sort(myTable )
The result is
1.jp
I am trying to use How can I create a secure Lua sandbox? to build my own vulnerability sandbox.
I am trying to create a Lua sandbox Box, some of the Lua functions can access some other Lua f
I completed my homework and researched other replies on this topic, but did not solve my specific problem.
I want to delete io completely The library and os are only part (let’s say I want to
I am learning Lua and encountered the following constructs:
button.action = function() buttonPressed() end< /pre> Is it the same?
button.action = buttonPressed() end ?
I know that
Use lua code blocks like this:
local a, b
function fA ()
print(a)
function fB ()
print(b)
end
end How many upvalues does fA have, 1 or 2?
You may want to use luac -l -l to read th
Context: I am working on a set of bindings, and many of my functions refer to the “global” Lua state. (It is not actually global in the code I am developing, but Local to a specific runtime instanc
I received an error saying that the “end” is missing, but I looked at the entire code without seeing it.
local Grid = {}
Grid.__index = Grid
function Grid.new(w, h) do
t = {}
setmetatable(t
What I want to do is create a function that will iterate some objects and call a function for each function. I am using BlitzMax, not C, but other than that , Because it has a complete Lua C functi
The rawset function in Lua is generally to pass the table, index and value, but I encountered this code:
rawset(tbl,name,()) and
rawset(tbl,name, function() end) Rawset The function ret
I have a DLL written in C. It is legacy code and the source code cannot be modified. I want to be able to call some functions inside the DLL from Lua.
— My Lua File
include(myCppDll.dll)
fun