Lines Matching full:local

136      in        local     nil       not       or
380 global variables, local variables, and table fields.
384 A single name can denote a global variable or a local variable
386 which is a particular kind of local variable):
396 as a local (see <a href="#2.4.7">&sect;2.4.7</a>).
397 Local variables are <em>lexically scoped</em>:
398 local variables can be freely accessed by functions
495 As such, chunks can define local variables,
655 So, the condition can refer to local variables
725local <em>var</em>, <em>limit</em>, <em>step</em> = tonumber(<em>e1</em>), tonumber(<em>e2</em>), …
728 local v = <em>var</em>
759 The loop variable <code>v</code> is local to the loop;
787 local <em>f</em>, <em>s</em>, <em>var</em> = <em>explist</em>
789local <em>var_1</em>, &middot;&middot;&middot;, <em>var_n</em> = <em>f</em>(<em>s</em>, <em>var</e…
817 The loop variables <code><em>var_i</em></code> are local to the loop;
842 <h3>2.4.7 - <a name="2.4.7">Local Declarations</a></h3><p>
843 Local variables can be declared anywhere inside a block.
847 stat ::= <b>local</b> namelist [`<b>=</b>&acute; explist]
856 and so local variables can be declared in a chunk outside any explicit block.
857 The scope of such local variables extends until the end of the chunk.
861 The visibility rules for local variables are explained in <a href="#2.6">&sect;2.6</a>.
1164 local t = {}
1300 stat ::= <b>local</b> <b>function</b> Name funcbody
1326 local function f () <em>body</em> end
1331 local f; f = function () <em>body</em> end
1336 local f = function () <em>body</em> end
1352 can refer to different external local variables
1357 Parameters act as local variables that are
1449 local x = x -- new 'x', with value 10
1453 local x = x+1 -- another 'x'
1462 Notice that, in a declaration like <code>local x = x</code>,
1469 local variables can be freely accessed by functions
1471 A local variable used by an inner function is called
1472 an <em>upvalue</em>, or <em>external local variable</em>,
1477 Notice that each execution of a <b>local</b> statement
1478 defines new local variables.
1483 local x = 20
1485 local y = 0
1637 local o1, o2 = tonumber(op1), tonumber(op2)
1641 local h = getbinhandler(op1, op2, "__add")
1693 local o = tonumber(op)
1698 local h = metatable(op).__unm
1720 local h = getbinhandler(op1, op2, "__concat")
1742 local h = metatable(op).__len
1767 local mm1 = metatable(op1)[event]
1768 local mm2 = metatable(op2)[event]
1783 local h = getcomphandler(op1, op2, "__eq")
1805 local h = getcomphandler(op1, op2, "__lt")
1828 local h = getcomphandler(op1, op2, "__le")
1854 local h
1856 local v = rawget(table, key)
1880 local h
1882 local v = rawget(table, key)
1909 local h = metatable(func).__call
2064 local h = metatable(udata).__gc
2207 local r = foo(a+1)
2209 local r, s = coroutine.yield(a+b, a-b)
4379 <code>"global"</code>, <code>"local"</code>, <code>"method"</code>,
4506 Gets information about a local variable of a given activation record.
4510 The index <code>n</code> selects which local variable to inspect
4511 (1 is the first parameter or active local variable, and so on,
4512 until the last active local variable).
4526 the number of active local variables.
4561 upvalues are the external local variables that the function uses,
4672 Sets the value of a local variable of a given activation record.
4683 the number of active local variables.
6487 "./?.lua;./?.lc;/usr/local/?/init.lua"
6492 <code>/usr/local/foo/init.lua</code>, in that order.
6502 "./?.so;./?.dll;/usr/local/?/init.so"
6506 and <code>/usr/local/foo/init.so</code>, in that order.
6856 local t = {name="lua", version="5.1"}
8175 (e.g., that variables local to a function
8198 the user can inspect global and local variables,
8206 within any function, and so have no direct access to local variables.
8274 <hr><h3><a name="pdf-debug.getlocal"><code>debug.getlocal ([thread,] level, local)</code></a></h3>
8278 This function returns the name and the value of the local variable
8279 with index <code>local</code> of the function at level <code>level</code> of the stack.
8280 (The first parameter or local variable has index&nbsp;1, and so on,
8281 until the last active local variable.)
8282 The function returns <b>nil</b> if there is no local
8386 <hr><h3><a name="pdf-debug.setlocal"><code>debug.setlocal ([thread,] level, local, value)</code></a…
8390 This function assigns the value <code>value</code> to the local variable
8391 with index <code>local</code> of the function at level <code>level</code> of the stack.
8392 The function returns <b>nil</b> if there is no local
8396 Otherwise, it returns the name of the local variable.
8565 #!/usr/local/bin/lua
8740 <b>local</b> <b>function</b> Name funcbody |
8741 <b>local</b> namelist [`<b>=</b>&acute; explist]