User contributions
From OpenEUO
(newest | oldest) View (newer 100 | older 100) (20 | 50 | 100 | 250 | 500)
- 21:14, 7 October 2010 (diff | hist) . . (+161) . . N Math.frexp (Created page with " local m , n = math.frexp (x) Returns m and n such that x = m2^n, n is an integer and the absolute value of m is in the range [0.5, 1) (or zero when x is zero).")
- 21:13, 7 October 2010 (diff | hist) . . (+105) . . N Math.fmod (Created page with " math.fmod (x, y) Returns the remainder of the division of x by y that rounds the quotient towards zero.")
- 21:13, 7 October 2010 (diff | hist) . . (+72) . . N Math.floor (Created page with " math.floor (x) Returns the largest integer smaller than or equal to x.")
- 21:12, 7 October 2010 (diff | hist) . . (+137) . . Math.exp
- 21:04, 7 October 2010 (diff | hist) . . (+37) . . N Math.exp (Created page with " math.exp (x) Returns the value e^x.")
- 21:03, 7 October 2010 (diff | hist) . . (+65) . . N Math.deg (Created page with " math.deg (x) Returns the angle x (given in radians) in degrees.")
- 21:03, 7 October 2010 (diff | hist) . . (+51) . . N Math.cosh (Created page with " math.cosh (x) Returns the hyperbolic cosine of x.")
- 21:03, 7 October 2010 (diff | hist) . . (+66) . . N Math.cos (Created page with " math.cos (x) Returns the cosine of x (assumed to be in radians).")
- 21:02, 7 October 2010 (diff | hist) . . (+71) . . N Math.ceil (Created page with " math.ceil (x) Returns the smallest integer larger than or equal to x.")
- 21:02, 7 October 2010 (diff | hist) . . (+192) . . N Math.atan2 (Created page with " math.atan2 (y, x) Returns the arc tangent of y/x (in radians), but uses the signs of both parameters to find the quadrant of the result. (It also handles correctly the case of ...")
- 21:02, 7 October 2010 (diff | hist) . . (+58) . . N Math.atan (Created page with " math.atan (x) Returns the arc tangent of x (in radians).")
- 21:01, 7 October 2010 (diff | hist) . . (+55) . . N Math.asin (Created page with " math.asin (x) Returns the arc sine of x (in radians).")
- 21:01, 7 October 2010 (diff | hist) . . (+57) . . N Math.acos (Created page with " math.acos (x) Returns the arc cosine of x (in radians).")
- 21:01, 7 October 2010 (diff | hist) . . (+47) . . N Math.abs (Created page with " math.abs (x) Returns the absolute value of x.")
- 20:58, 7 October 2010 (diff | hist) . . (+17) . . String.match
- 20:58, 7 October 2010 (diff | hist) . . (+16) . . String.gsub (current)
- 20:57, 7 October 2010 (diff | hist) . . (+17) . . String.gmatch
- 20:57, 7 October 2010 (diff | hist) . . (+4,393) . . String.find
- 20:55, 7 October 2010 (diff | hist) . . (+235) . . N String.upper (Created page with " string.upper (s) Receives a string and returns a copy of this string with all lowercase letters changed to uppercase. All other characters are left unchanged. The definition of ...")
- 20:55, 7 October 2010 (diff | hist) . . (+349) . . N String.sub (Created page with " string.sub (s, i [, j]) Returns the substring of s that starts at i and continues until j; i and j can be negative. If j is absent, then it is assumed to be equal to -1 (which i...")
- 20:54, 7 October 2010 (diff | hist) . . (+67) . . N String.reverse (Created page with " string.reverse (s) Returns a string that is the string s reversed.")
- 20:54, 7 October 2010 (diff | hist) . . (+90) . . N String.rep (Created page with " string.rep (s, n) Returns a string that is the concatenation of n copies of the string s.")
- 20:53, 7 October 2010 (diff | hist) . . (+454) . . N String.match (Created page with " string.match (s, pattern [, init]) Looks for the first match of pattern in the string s. If it finds one, then match returns the captures from the pattern; otherwise it returns ...")
- 20:53, 7 October 2010 (diff | hist) . . (+236) . . N String.lower (Created page with " string.lower (s) Receives a string and returns a copy of this string with all uppercase letters changed to lowercase. All other characters are left unchanged. The definition of ...")
- 20:52, 7 October 2010 (diff | hist) . . (+150) . . N String.len (Created page with " string.len (s) Receives a string and returns its length. The empty string "" has length 0. Embedded zeros are counted, so "a\000bc\000" has length 5.")
- 20:52, 7 October 2010 (diff | hist) . . (+2,100) . . N String.gsub (Created page with "string.gsub (s, pattern, repl [, n]) Returns a copy of s in which all (or the first n, if given) occurrences of the pattern have been replaced by a replacement string specified b...")
- 20:51, 7 October 2010 (diff | hist) . . (+80) . . String.gmatch
- 20:50, 7 October 2010 (diff | hist) . . (+745) . . N String.gmatch (Created page with " string.gmatch (s, pattern) Returns an iterator function that, each time it is called, returns the next captures from pattern over string s. If pattern specifies no captures, the...")
- 20:50, 7 October 2010 (diff | hist) . . (+1,130) . . N String.format (Created page with " string.format (formatstring, ···) Returns a formatted version of its variable number of arguments following the description given in its first argument (which must be a strin...")
- 20:47, 7 October 2010 (diff | hist) . . (+814) . . N String.find (Created page with " string.find (s, pattern [, init [, plain]]) Looks for the first match of pattern in the string s. If it finds a match, then find returns the indices of s where this occurrence s...")
- 20:44, 7 October 2010 (diff | hist) . . (+345) . . N String.dump (Created page with " string.dump (function) Returns a string containing a binary representation of the given function, so that a later loadstring on this string returns a copy of the function. func...")
- 20:41, 7 October 2010 (diff | hist) . . (+283) . . Openfile
- 20:35, 7 October 2010 (diff | hist) . . (+301) . . N String.char (Created page with " string.char (···) Receives zero or more integers. Returns a string with length equal to the number of arguments, in which each character has the internal numerical code equal...") (current)
- 20:34, 7 October 2010 (diff | hist) . . (+333) . . N String.byte (Created page with " string.byte (s [, i [, j]]) Returns the internal numerical codes of the characters s[i], s[i+1], ···, s[j]. The default value for i is 1; the default value for j is i. Note ...")
- 20:30, 7 October 2010 (diff | hist) . . (+3,120) . . Openfile
- 20:25, 7 October 2010 (diff | hist) . . (+80) . . Openfile
- 20:23, 7 October 2010 (diff | hist) . . (+718) . . Openfile
- 20:22, 7 October 2010 (diff | hist) . . (+677) . . N Openfile (Created page with " io.open (filename [, mode]) This function opens a file, in the mode specified in the string mode. It returns a new file handle, or, in case of errors, nil plus an error message...")
- 20:17, 7 October 2010 (diff | hist) . . (+134) . . Bit.Shl
- 20:16, 7 October 2010 (diff | hist) . . (+179) . . N Bit.Shr (Created page with " Bit.Shr(n1,n2) Returns the result of shifting n1 to the right by n2 bits. Since numbers are stored in double format, don't use this as a shortcut for division by a power of two.")
- 20:14, 7 October 2010 (diff | hist) . . (+78) . . N Bit.Shl (Created page with " BitShl(n1,n2) Returns the result of bitwise shifting n1 to the left n2 bits.")
- 20:12, 7 October 2010 (diff | hist) . . (+423) . . N Bit.Xor (Created page with " Bit.Xor(n1,n2,...) Returns the results of a bitwise exclusive or operation on the arguments. The arguments are numbers, numbers in Lua are doubles, and the double type contains...")
- 20:10, 7 October 2010 (diff | hist) . . (+408) . . N Bit.Or (Created page with " Bit.Or(n1,n2,...) Returns the result of a bitwise or operation on the arguments. Arguments are numbers, numbers under Lua are doubles, and the double type contains 64 bits: 1 f...")
- 20:08, 7 October 2010 (diff | hist) . . (+352) . . N Bit.Not (Created page with " Bit.Not(n) Returns the result of a bitwise not operation on the sole argument. n is a number, numbers are doubles in Lua, and the double type contains 64 bits: 1 for sign, 11 f...")
- 20:06, 7 October 2010 (diff | hist) . . (+23) . . Bit.And
- 20:05, 7 October 2010 (diff | hist) . . (+431) . . N Bit.And (Created page with " Bit.And(n1,n2,...) Provides support for the bitwise and operation. n1, n2 and other arguments are numbers. Numbers in Lua are defined as doubles. The double type contains 64 b...")
- 19:56, 7 October 2010 (diff | hist) . . (+21) . . Ipairs (current)
- 19:55, 7 October 2010 (diff | hist) . . (-12) . . Getfenv
- 19:53, 7 October 2010 (diff | hist) . . (+12) . . Getfenv
- 19:52, 7 October 2010 (diff | hist) . . (+45) . . Dofile (current)
- 19:51, 7 October 2010 (diff | hist) . . (+59) . . Loadfile (current)
- 19:51, 7 October 2010 (diff | hist) . . (+78) . . Loadstring (current)
- 19:11, 7 October 2010 (diff | hist) . . (+626) . . N Obj.Create (Created page with " local oref = Obj.Create (str) Create a gui object of the given type as specified by the string str. e.g. local form = Obj.Create ("TForm") instantiates a TForm object and as...")
- 18:59, 7 October 2010 (diff | hist) . . (+114) . . Obj.Free (current)
- 18:56, 7 October 2010 (diff | hist) . . (+113) . . N Obj.Free (Created page with " Obj.Free(oref) Frees the object referenced by oref, created previously by a call to Obj.Create. Obj.Create")
- 18:52, 7 October 2010 (diff | hist) . . (+19) . . Obj.Exit (current)
- 18:52, 7 October 2010 (diff | hist) . . (+159) . . N Obj.Exit (Created page with " Obj.Exit () Only applicable to a script using objects, Obj.Exit posts a message to the script's event queue requesting termination of Obj.Loop. Obj.Loop")
- 18:50, 7 October 2010 (diff | hist) . . (+312) . . N Obj.Loop (Created page with " Obj.Loop () Swallows execution of thread and processes incoming windows messages by calling any associated object event handlers. Obj.Loop does not return until an Obj.Exit i...") (current)
- 18:46, 7 October 2010 (diff | hist) . . (+21) . . Wait
- 18:45, 7 October 2010 (diff | hist) . . (+14) . . Wait
- 18:45, 7 October 2010 (diff | hist) . . (+151) . . N Wait (Created page with " wait (msec) Temporarily pauses execution of the script for msec milliseconds. Keep durations short if used in a gui thread where events are handled.")
- 18:41, 7 October 2010 (diff | hist) . . (+52) . . N Stop (Created page with " stop () Immediately ends execution of the script.")
- 18:40, 7 October 2010 (diff | hist) . . (+119) . . N Pause (Created page with " pause () Pauses execution of the script; may be resumed from the gui by using the run command or via single-stepping.")
- 18:38, 7 October 2010 (diff | hist) . . (+82) . . N Dostring (Created page with " dostring (str) Like dofile, except that the string str is processed. Dofile") (current)
- 18:37, 7 October 2010 (diff | hist) . . (+24) . . Table.remove
- 18:36, 7 October 2010 (diff | hist) . . (+552) . . N Table.sort (Created page with " table.sort (table [, comp]) Sorts table elements in a given order, in-place, from table[1] to table[n], where n is the length of the table. If comp is given, then it must be a f...")
- 18:35, 7 October 2010 (diff | hist) . . (+433) . . N Table.remove (Created page with " table.remove (table [, pos]) Removes from table the element at position pos, shifting down other elements to close the space, if necessary. Returns the value of the removed ele...")
- 18:33, 7 October 2010 (diff | hist) . . (+255) . . N Table.maxn (Created page with " table.maxn (table) Returns the largest positive numerical index of the given table, or zero if the table has no positive numerical indices. (To do its job this function does a ...")
- 18:31, 7 October 2010 (diff | hist) . . (+460) . . N Table.insert (Created page with " table.insert (table, [pos,] value) Inserts element value at position pos in table, shifting up other elements to open space, if necessary. The default value for pos is n+1, whe...")
- 18:30, 7 October 2010 (diff | hist) . . (+326) . . N Table.concat (Created page with " table.concat (table [, sep [, i [, j]]]) Given an array where all elements are strings or numbers, returns table[i]..sep..table[i+1] ··· sep..table[j]. The default value for ...")
- 18:27, 7 October 2010 (diff | hist) . . (+417) . . N Unpack (Created page with " unpack (list [, i [, j]]) Returns the elements from the given table. This function is equivalent to return list[i], list[i+1], ···, list[j] except that the above code ...")
- 18:26, 7 October 2010 (diff | hist) . . (+224) . . N Type (Created page with " type (v) Returns the type of its only argument, coded as a string. The possible results of this function are "nil" (a string, not the value nil), "number", "string", "boolean", ...")
- 18:25, 7 October 2010 (diff | hist) . . (+348) . . N Tostring (Created page with " tostring (e) Receives an argument of any type and converts it to a string in a reasonable format. For complete control of how numbers are converted, use string.format. If the m...")
- 18:25, 7 October 2010 (diff | hist) . . (+711) . . N Tonumber (Created page with " tonumber (e [, base]) Tries to convert its argument to a number. If the argument is already a number or a string convertible to a number, then tonumber returns this number; othe...")
- 18:22, 7 October 2010 (diff | hist) . . (+73) . . Setmetatable
- 18:21, 7 October 2010 (diff | hist) . . (+308) . . N Setmetatable (Created page with " setmetatable (table, metatable) Sets the metatable for the given table. (You cannot change the metatable of other types from Lua, only from C.) If metatable is nil, removes the...")
- 18:21, 7 October 2010 (diff | hist) . . (+48) . . Setfenv
- 18:20, 7 October 2010 (diff | hist) . . (+365) . . N Setfenv (Created page with " setfenv (f, table) Sets the environment to be used by the given function. f can be a Lua function or a number that specifies the function at that stack level: Level 1 is the fu...")
- 18:19, 7 October 2010 (diff | hist) . . (+206) . . N Select (Created page with " select (index, ···) If index is a number, returns all arguments after argument number index. Otherwise, index must be the string "#", and select returns the total number of ...")
- 18:19, 7 October 2010 (diff | hist) . . (+297) . . N Rawset (Created page with " rawset (table, index, value) Sets the real value of table[index] to value, without invoking any metamethod. table must be a table, index any value different from nil, and value...")
- 18:17, 7 October 2010 (diff | hist) . . (+213) . . N Rawget (Created page with " rawget (table, index) Gets the real value of table[index], without invoking any metamethod. table must be a table; index may be any value. [http://www.lua.org/manual/5.1/manua...")
- 18:16, 7 October 2010 (diff | hist) . . (+178) . . N Rawequal (Created page with " rawequal (v1, v2) Checks whether v1 is equal to v2, without invoking any metamethod. Returns a boolean. [http://www.lua.org/manual/5.1/manual.html#2.8 Lua Manual - Metatables]")
- 18:15, 7 October 2010 (diff | hist) . . (+324) . . N Print (Created page with " print (···) Receives any number of arguments, and prints their values to the feedback window, using the tostring function to convert them to strings. print is not intended fo...")
- 18:14, 7 October 2010 (diff | hist) . . (+516) . . N Pcall (Created page with " pcall (f, arg1, ···) Calls function f with the given arguments in protected mode. This means that any error inside f is not propagated; instead, pcall catches the error and ...")
- 18:11, 7 October 2010 (diff | hist) . . (+12) . . Pairs (current)
- 18:11, 7 October 2010 (diff | hist) . . (+1) . . Next (current)
- 18:11, 7 October 2010 (diff | hist) . . (+10) . . Next
- 18:11, 7 October 2010 (diff | hist) . . (+280) . . N Pairs (Created page with "pairs (t) Returns three values: the next function, the table t, and nil, so that the construction for k,v in pairs(t) do body end will iterate over all key–value pairs ...")
- 18:10, 7 October 2010 (diff | hist) . . (+935) . . N Next (Created page with " next (table [, index]) Allows a program to traverse all fields of a table. Its first argument is a table and its second argument is an index in this table. next returns the nex...")
- 18:08, 7 October 2010 (diff | hist) . . (+229) . . N Loadstring (Created page with " loadstring (string [, chunkname]) Similar to loadfile, but gets the chunk from the given string. To load and run a given string, use the idiom assert(loadstring(s))() W...")
- 18:07, 7 October 2010 (diff | hist) . . (+238) . . N Loadfile (Created page with " loadfile ([filename]) Loads a chunk from file filename. If there are no errors, returns the compiled chunk as a function; otherwise, returns nil plus the error message. The env...")
- 18:04, 7 October 2010 (diff | hist) . . (+248) . . N Ipairs (Created page with " ipairs (t) Returns three values: an iterator function, the table t, and 0, so that the construction for i,v in ipairs(t) do body end will iterate over the pairs (1,t[1])...")
- 18:02, 7 October 2010 (diff | hist) . . (+73) . . Getmetatable
- 18:00, 7 October 2010 (diff | hist) . . (+220) . . N Getmetatable (Created page with " getmetatable(object) If object does not have a metatable, returns nil. Otherwise, if the object's metatable has a "__metatable" field, returns the associated value. Otherwise, ...")
- 17:56, 7 October 2010 (diff | hist) . . (+319) . . N Getfenv (Created page with " getfenv ([f]) Returns the current environment in use by the function. f can be a Lua function or a number that specifies the function at that stack level: Level 1 is the functio...")
- 17:55, 7 October 2010 (diff | hist) . . (+559) . . N Error (Created page with " error (message [, level]) Terminates the last protected function called and returns message as the error message. Function error never returns. Usually, error adds some informa...")
- 17:54, 7 October 2010 (diff | hist) . . (+235) . . N Dofile (Created page with " dofile (filename) Opens the named file and executes its contents as a Lua chunk. Returns all values returned by the chunk. In case of errors, dofile propagates the error to its...")
- 17:52, 7 October 2010 (diff | hist) . . (+901) . . N Collectgarbage (Created page with " collectgarbage (opt [, arg]) This function is a generic interface to the garbage collector. It performs different functions according to its first argument, opt: * "stop": st...")
- 17:51, 7 October 2010 (diff | hist) . . (+219) . . N Assert (Created page with " assert (v [, message]) Issues an error when the value of its argument v is false (i.e., nil or false); otherwise, returns all its arguments. message is an error message; when a...")
- 17:49, 7 October 2010 (diff | hist) . . (+387) . . N G (Created page with "A global variable (not a function) that holds the global environment (that is, _G._G = _G). Lua itself does not use this variable; changing its value does not affect any environm...")
(newest | oldest) View (newer 100 | older 100) (20 | 50 | 100 | 250 | 500)