<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua/testes, branch v5.4-alpha</title>
<subtitle>A mirror of https://github.com/lua/lua
</subtitle>
<id>https://git.lua4.win/lua/atom?h=v5.4-alpha</id>
<link rel='self' href='https://git.lua4.win/lua/atom?h=v5.4-alpha'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/'/>
<updated>2019-06-05T16:16:25+00:00</updated>
<entry>
<title>Multiple errors in '__toclose' report the first one</title>
<updated>2019-06-05T16:16:25+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-06-05T16:16:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=b4d5dff8ec4f1c8a44db66d368e95d359b04aea7'/>
<id>urn:sha1:b4d5dff8ec4f1c8a44db66d368e95d359b04aea7</id>
<content type='text'>
When there are multiple errors when closing objects, the error
reported by the protected call is the first one, for two reasons:
First, other errors may be caused by this one;
second, the first error is handled in the original execution context,
and therefore has the full traceback.
</content>
</entry>
<entry>
<title>Function 'warn' is vararg</title>
<updated>2019-06-04T14:22:21+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-06-04T14:22:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=14edd364c3abcb758e74c68a2bdd4ddaeefdae2a'/>
<id>urn:sha1:14edd364c3abcb758e74c68a2bdd4ddaeefdae2a</id>
<content type='text'>
Instead of a 'tocont' flag, the function 'warn' in Lua now receives all
message pieces as multiple arguments in a single call. Besides being
simpler to use, this implementation ensures that Lua code cannot create
unfinished warnings.
</content>
</entry>
<entry>
<title>'coroutine.kill' renamed 'coroutine.close'</title>
<updated>2019-06-03T16:11:20+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-06-03T16:11:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=514d94274853e6f0dfd6bb2ffa2e1fc64db926dd'/>
<id>urn:sha1:514d94274853e6f0dfd6bb2ffa2e1fc64db926dd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bug in 5.4 alpha rc1: to-be-closed x vararg functions</title>
<updated>2019-06-03T15:13:13+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-06-03T15:13:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=4a3fd8488d617aa633f6b8be85e662653b100a59'/>
<id>urn:sha1:4a3fd8488d617aa633f6b8be85e662653b100a59</id>
<content type='text'>
Closing methods must be run before correcting 'ci-&gt;func' when exiting
a vararg function, to get correct debug information (e.g., in case of
errors).
</content>
</entry>
<entry>
<title>Improvements in 'testes/cstack.lua'</title>
<updated>2019-06-03T14:34:32+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-06-03T14:34:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=7d0f41df41e9c513e7282356541b54beaf9ed20d'/>
<id>urn:sha1:7d0f41df41e9c513e7282356541b54beaf9ed20d</id>
<content type='text'>
- tests show progress in real time, so that we can see maximum
stack levels even if test crashes.
- new test for recursion continuing into message handler.
</content>
</entry>
<entry>
<title>Details</title>
<updated>2019-05-28T18:46:49+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-05-28T18:46:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=b293ae0577bebaca7169cb4f041b800641d5e2c4'/>
<id>urn:sha1:b293ae0577bebaca7169cb4f041b800641d5e2c4</id>
<content type='text'>
- new error message for "attempt to assign to const variable"
- note in the manual about compatibility options
- comments
- small changes in 'read_line' and 'pushstr'
</content>
</entry>
<entry>
<title>First implementation for 'const' variables</title>
<updated>2019-05-17T14:11:44+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-05-17T14:11:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=d9f40e3f6fb61650240c47d548bee69b24b07859'/>
<id>urn:sha1:d9f40e3f6fb61650240c47d548bee69b24b07859</id>
<content type='text'>
A variable can be declared const, which means it cannot be assigned to,
with the syntax 'local &lt;const&gt; name = exp'.
</content>
</entry>
<entry>
<title>Flag for to-be-closed variables changed to '&lt;toclose&gt;'</title>
<updated>2019-05-09T15:10:31+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-05-09T15:10:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=d881325c2fcbb6d2c434ec403b0bbe51ac200c7b'/>
<id>urn:sha1:d881325c2fcbb6d2c434ec403b0bbe51ac200c7b</id>
<content type='text'>
The flag for to-be-closed variables was changed from '*toclose'
to '&lt;toclose&gt;'. Several people found confusing the old syntax and
the new one has a clear terminator, making it more flexible for
future changes.
</content>
</entry>
<entry>
<title>Coroutines do not unwind the stack in case of errors</title>
<updated>2019-05-09T14:13:45+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-05-09T14:13:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=389116d8abcc96db3cfe2f3cc25789c089fe12d6'/>
<id>urn:sha1:389116d8abcc96db3cfe2f3cc25789c089fe12d6</id>
<content type='text'>
Back to how it was, a coroutine does not unwind its stack in case of
errors (and therefore do not close its to-be-closed variables). This
allows the stack to be examined after the error. The program can
use 'coroutine.kill' to close the variables.

The function created by 'coroutine.wrap', however, closes the
coroutine's variables in case of errors, as it is impossible to examine
the stack any way.
</content>
</entry>
<entry>
<title>File 'lib2-v2.so' generated from its own source</title>
<updated>2019-05-03T13:36:19+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-05-03T13:36:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=01bded3d8cd88a2d7f472b45f706565f1a9ef3b1'/>
<id>urn:sha1:01bded3d8cd88a2d7f472b45f706565f1a9ef3b1</id>
<content type='text'>
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.
</content>
</entry>
</feed>
