enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. Help:Lua debugging - Wikipedia

    en.wikipedia.org/wiki/Help:Lua_debugging

    Invalid concatenation of empty string: my_str = my_str .. "xx" - The string named 'my_str' must not be nil when used inside a string concatenation operation. Invalid concatenation by "+" not ".." operator: my_str = my_str + "z" - The concatenation operator is double-dot ".." and trying to use a plus-sign "+" might pass during the pre-compile of ...

  3. Wikipedia : Guide to Scribbling/Programmers' Quick start ...

    en.wikipedia.org/wiki/Wikipedia:Guide_to...

    String operations trade space for time. Don't repeatedly concatenate onto the end of a string. Build up its individual parts in a table and use table.concat (). * by the reciprocal is faster than /. return and break can only occur at the end of a block. There's no continue. There's no goto. next is a global variable, not a keyword. By default ...

  4. Help:Lua for beginners - Wikipedia

    en.wikipedia.org/wiki/Help:Lua_for_beginners

    The script at Module:LuaCall has been written to accept any set of named parameters somename=value, for each one storing the string value in the variable with the name somename, and then allowing you to use these variables as parameters for any function available in Lua. The script then returns only the first value returned by the function (Lua ...

  5. Help:Manipulating strings - Wikipedia

    en.wikipedia.org/wiki/Help:Manipulating_strings

    Regular expressions (or regex) are a common and very versatile programming technique for manipulating strings. On Wikipedia you can use a limited version of regex called a Lua pattern to select and modify bits of text from a string. The pattern is a piece of code describing what you are looking for in the string.

  6. String literal - Wikipedia

    en.wikipedia.org/wiki/String_literal

    However, removing the feature breaks backwards compatibility, and replacing it with a concatenation operator introduces issues of precedence – string literal concatenation occurs during lexing, prior to operator evaluation, but concatenation via an explicit operator occurs at the same time as other operators, hence precedence is an issue ...

  7. Module:Scripts - Wikipedia

    en.wikipedia.org/wiki/Module:Scripts

    Currently, left-to-right scripts are unmarked, while most right-to-left scripts have direction specified as {{code|lua|"rtl"}} and Mongolian as {{code|lua|"down"}}.]==] function Script: getDirection return self. _rawData. direction end function Script: getRawData return self. _rawData end--[==[Returns {{code|lua|true}} if the script contains ...

  8. Wikipedia:Lua string functions - Wikipedia

    en.wikipedia.org/wiki/Wikipedia:Lua_string_functions

    The string-search functions in Lua script can run extremely fast, comparing millions of characters per second. For example, a search of a 40,000-character article text, for 99 separate words (passed as 99 parameters in a template), ran within one second of Lua CPU clock time.

  9. Wikipedia : Guide to Scribbling

    en.wikipedia.org/wiki/Wikipedia:Guide_to_Scribbling

    The first Lua script does phase 1 fairly explicitly. It creates a local variable named p on line 1, initialized to a table; builds and adds a function to it (lines 3–5), by giving the function the name India in the table named by p ( function p .