aboutsummaryrefslogtreecommitdiff
path: root/testes/vararg.lua (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Vertical bar removed from syntax of vararg tableRoberto I2025-10-301-11/+11
| | | | | | The syntax 'function foo (a, b, ...arg)' is already used by JavaScript for this same semantics, so it seems natural to use the same notation in Lua.
* Case VVARGIND added to luaK_storevarRoberto Ierusalimschy2025-10-301-0/+12
| | | | | | In a global initialization, the variable does not pass through 'check_readonly', and therefore a VVARGIND is not normalized to a VINDEXED.
* Optimization for vararg tablesRoberto I2025-09-241-6/+41
| | | | | | | A vararg table can be virtual. If the vararg table is used only as a base in indexing expressions, the code does not need to create an actual table for it. Instead, it compiles the indexing expressions into direct accesses to the internal vararg data.
* Varag parameter is a new kind of variableRoberto I2025-09-171-0/+26
| | | | To allow some optimizations on its use.
* Vararg tableRoberto I2025-09-161-4/+7
| | | | Not yet optimized nor documented.
* Removed copyright notice from 'testes/all.lua'Roberto Ierusalimschy2025-03-121-1/+1
| | | | All test files refer to the main copyright notice in 'lua.h'.
* Avoid excessive name pollution in test filesRoberto Ierusalimschy2022-12-281-9/+9
| | | | | Test files are more polite regarding the use of globals when locals would do, and when globals are necessary deleting them after use.
* Added directory to test file names in '$Id:'Roberto Ierusalimschy2018-07-251-1/+1
| | | | | | | From the point of view of 'git', all names are relative to the root directory of the project. So, file names in '$Id:' also should be relative to that directory: the proper name for test file 'all.lua' is 'testes/all.lua'.
* Added manual and tests for version 5.4-w2Roberto Ierusalimschy2018-07-091-0/+151