This code confuses me.
print(gogo)
if (gogo == true) then
print(“yes”)
elseif (gogo == false) then
print(“no”)
end Why gogo evaluates to true ? Shouldn’t it produce an error?
print(tr
Programming language is a formal language used to define computer programs. It is a standardized communication technique used to issue instructions to a computer. A computer language allows programmers to accurately define the data that the computer needs to use, and precisely define the actions that should be taken in different situations.
This code confuses me.
print(gogo)
if (gogo == true) then
print(“yes”)
elseif (gogo == false) then
print(“no”)
end Why gogo evaluates to true ? Shouldn’t it produce an error?
print(tr
I have a TCustomClientDataSet (in memory), which is used to perform some filtering in a Delphi program.
My filtering code is as follows:
CDSFilteredGroup.Filter :=’ACP_type = 1 AND ACP_
I am using Lua as the data description language for my C application. I have a bunch of C classes that are bound to Lua using SLB 2.0. I have binding methods such as’SetPos ‘Or’SetName’. I use a ta
I searched for other people’s package code, and it feels not elegant enough, mainly because the timing of calling set_keepalive is not good.
The code below myself uses coroutine, and set_keepalive
Hi, I am very new to Lua, I need to sort the array in Lua.
So I have the following code
local distances = {2,3,1}
table.sort(distances) Now I understand
>distance[1 ] –> 1
>Distan
Sorry, I am still learning Lua. You can correct me, why the data in the file is not read line by line?
This is my sample data in the file points.txt:
lexxo:30:1
rey:40: 2
lion:40:2
prin
I need to read from a .log file that is constantly changing from another application. (Adding more data often)
So I started from the beginning:
var
LogFile: TStrings;
Stream: TStream;
I know there are some examples of using LuaJIT FFI to create pointers, but most of them do not point to existing data. One example is:
How to pass a pointer to LuaJIT ffi to be used as out argume
I am trying to drag a dynamic object with gravity = 0,0 in my scene. I have a dynamic square and a static image, but when on the image There is a little power when dragging the square, but it can e
When I try to call a method of another class from another class, it will display an error message,
Attempt to call field’LoadShift’ (a nil value) This is my code,
loginpage1.lua
local L