Page 14
Efficiency . Lua has a very efficient implementation tions. Independent tests show that Lua is one of the most most fast languages among scripting languages....
View in text
Excerpt 2
“-”] = “sub”, [“*”] = “Mul”, [“/”] = “div”} i = 20; s = “-” a = {[i + 0] = s, [i + 1] = s..s, [i + 2] = s..s..s} print (opnames [s]) -> sub print (a [22]) Th...
View in text
Excerpt 3
) , where k is the key of table t , returns the following - key in the table in no particular order, and also associated with with this key the value as the...
View in text
Excerpt 4
thread finished downloading? table.remove (threads, i) else i = i + 1 –– go to the next thread end end end The next task is to sort the word list. However, h...
View in text
Excerpt 5
want to track. Then we can use the following blowing code: t = {} - the source table was created somewhere - create private access to it local _t = t - creat...
View in text
Excerpt 6
will search in b for all operations that it does not know. Setting b as a class for a is actually practically same. Let's go back to our bank account example...
View in text
Excerpt 7
print (string.sub (s, string.find (s, date))) -> 30/05/1999 The following table contains a list of all character classes: All symbols % a Letters % c Control...
View in text
Excerpt 8
io.output . Calling io.input (filename) opens the specified file to read and sets it as input file default. From now on, all input will come from this- use t...
View in text
Loading comments...
Reply to Comment
Edit Comment