aboutsummaryrefslogtreecommitdiff
path: root/testes/attrib.lua (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Short strings can be external, tooRoberto Ierusalimschy2025-07-151-7/+21
| | | | | | | That complicates a little object equality (and therefore table access for long strings), but the old behavior was somewhat weird. (Short strings, a concept otherwise absent from the manual, could not be external.)
* New method to unload DLLsRoberto Ierusalimschy2025-07-091-1/+7
| | | | | | | | | | External strings created by DLLs may need the DLL code to be deallocated. This implies that a DLL can only be unloaded after all its strings were deallocated, which happen only after the run of all finalizers. To ensure that order, we create a 'library string' to represent each DLL and keep it locked. When this string is deallocated (after the deallocation of any string created by the DLL) it closes its corresponding DLL.
* 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'.
* Merge branch 'master' into nextversionRoberto Ierusalimschy2022-12-281-11/+13
|\
| * Avoid excessive name pollution in test filesRoberto Ierusalimschy2022-12-281-11/+13
| | | | | | | | | | Test files are more polite regarding the use of globals when locals would do, and when globals are necessary deleting them after use.
* | Control variables in for loops are read onlyRoberto Ierusalimschy2022-12-211-1/+1
|/
* Bug: Lua can generate wrong code when _ENV is <const>Roberto Ierusalimschy2022-02-151-0/+10
|
* Comments (mosty typos)Roberto Ierusalimschy2019-12-301-1/+1
|
* Change in the prefix of messages from searchersRoberto Ierusalimschy2019-10-241-0/+23
| | | | | | The initial "\n\t" to properly indent a searcher message is being added by 'findloader' when building the error message, instead of being included in the original message by each searcher itself.
* File 'lib2-v2.so' generated from its own sourceRoberto Ierusalimschy2019-05-031-1/+1
| | | | | Instead of being a copy of 'lib2.so', 'lib2-v2.so' has its own source file ('lib22.c'), so that the test can distinguish both libraries.
* 'require' returns where module was foundRoberto Ierusalimschy2019-04-171-15/+20
| | | | | The function 'require' returns the *loader data* as a second result. For file searchers, this data is the path where they found the module.
* 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/+487