<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua/testes/coroutine.lua, branch v5.5.1</title>
<subtitle>A mirror of https://github.com/lua/lua
</subtitle>
<id>https://git.lua4.win/lua/atom?h=v5.5.1</id>
<link rel='self' href='https://git.lua4.win/lua/atom?h=v5.5.1'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/'/>
<updated>2025-11-26T14:18:29+00:00</updated>
<entry>
<title>New conceptual model for vararg</title>
<updated>2025-11-26T14:18:29+00:00</updated>
<author>
<name>Roberto I</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-11-26T14:18:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=f33cc4ddec886ea499d7d41dd60cac5ddc5687db'/>
<id>urn:sha1:f33cc4ddec886ea499d7d41dd60cac5ddc5687db</id>
<content type='text'>
Conceptually, all functions get their vararg arguments in a vararg
table. The storing of vararg arguments in the stack is always treated
as an optimization.
</content>
</entry>
<entry>
<title>The main thread cannot be closed</title>
<updated>2025-06-13T17:08:38+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-06-13T17:08:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=e657a48ea5698bbd9982d878eb65e6615ec94f7e'/>
<id>urn:sha1:e657a48ea5698bbd9982d878eb65e6615ec94f7e</id>
<content type='text'>
No thread started with pcall (instead of resume) can be closed,
because coroutine.close would not respect the expected number of
results from the protected call.
</content>
</entry>
<entry>
<title>A coroutine can close itself</title>
<updated>2025-06-12T14:15:09+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-06-12T14:15:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=fd897027f19288ce2cb0249cb8c1818e2f3f1c4c'/>
<id>urn:sha1:fd897027f19288ce2cb0249cb8c1818e2f3f1c4c</id>
<content type='text'>
A call to close itself will close all its to-be-closed variables and
return to the resume that (re)started the coroutine.
</content>
</entry>
<entry>
<title>New function 'resetCI'</title>
<updated>2025-03-17T17:32:08+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-03-17T17:32:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=921832be8d7f687d2cd891654c8680c6e9d6584c'/>
<id>urn:sha1:921832be8d7f687d2cd891654c8680c6e9d6584c</id>
<content type='text'>
New function 'resetCI' resets the CallInfo list of a thread, ensuring
a proper state when creating a new thread, closing a thread, or
closing a state, so that we can run code after that. (When closing a
thread, we need to run its __close metamethods; when closing a
state, we need to run its __close metamethods and its finalizers.)
</content>
</entry>
<entry>
<title>Removed copyright notice from 'testes/all.lua'</title>
<updated>2025-03-12T17:00:58+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-03-12T17:00:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=ab66652b3270b95222dea134b5e47bb3afc434cc'/>
<id>urn:sha1:ab66652b3270b95222dea134b5e47bb3afc434cc</id>
<content type='text'>
All test files refer to the main copyright notice in 'lua.h'.
</content>
</entry>
<entry>
<title>'lua_State.nci' must be an integer</title>
<updated>2025-02-26T14:31:10+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-02-26T14:31:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=f9e35627ed26dff4114a1d01ff113d8b4cc91ab5'/>
<id>urn:sha1:f9e35627ed26dff4114a1d01ff113d8b4cc91ab5</id>
<content type='text'>
Lua can easily overflow an unsigned short counting nested calls.
(The limit to this value is the maximum stack size, LUAI_MAXSTACK,
which is currently 1e6.)
</content>
</entry>
<entry>
<title>CallInfo bit CIST_CLSRET broken in two</title>
<updated>2025-01-28T14:45:45+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-01-28T14:45:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=39a14ea7d7b14172595c61619e8f35c2614b2606'/>
<id>urn:sha1:39a14ea7d7b14172595c61619e8f35c2614b2606</id>
<content type='text'>
Since commit f407b3c4a, it was being used for two distinct (and
incompatible) meanings:
A: Function has TBC variables (now bit CIST_TBC)
B: Interpreter is closing TBC variables (original bit CIST_CLSRET)

B implies A, but A does not imply B.
</content>
</entry>
<entry>
<title>New interface to function 'luaL_openselectedlibs'</title>
<updated>2024-02-15T14:17:39+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2024-02-15T14:17:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=165389b27bc54e7c5214276db177e3ef75226f18'/>
<id>urn:sha1:165389b27bc54e7c5214276db177e3ef75226f18</id>
<content type='text'>
Instead of preloading all non-loaded libraries, there is another
mask to select which libraries to preload.
</content>
</entry>
<entry>
<title>Merge branch 'master' into nextversion</title>
<updated>2024-01-25T16:52:52+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2024-01-25T16:52:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=108e0bdc8495782544c351b17eaae1411a910e89'/>
<id>urn:sha1:108e0bdc8495782544c351b17eaae1411a910e89</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Clear interface between references and predefines</title>
<updated>2024-01-15T14:31:49+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2024-01-15T14:31:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=17e0c29d9b435392016b707309ed51409b0aea12'/>
<id>urn:sha1:17e0c29d9b435392016b707309ed51409b0aea12</id>
<content type='text'>
The reference system has a defined way to add initial values to the
table where it operates.
</content>
</entry>
</feed>
