<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua/manual, 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-06T15:51:41+00:00</updated>
<entry>
<title>Updated the documentation for the API function 'lua_gc'</title>
<updated>2019-06-06T15:51:41+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-06-06T15:51:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=f39e8c06d61078467b3f32499728ed4e9b7b06bc'/>
<id>urn:sha1:f39e8c06d61078467b3f32499728ed4e9b7b06bc</id>
<content type='text'>
</content>
</entry>
<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>Details</title>
<updated>2019-06-03T14:36:42+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-06-03T14:36:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=2c68e66570206aa1496f9c76fcf2a1a0f550d692'/>
<id>urn:sha1:2c68e66570206aa1496f9c76fcf2a1a0f550d692</id>
<content type='text'>
Several small changes from feedback on 5.4 alhpa rc1 (warnings,
typos in the manual, and the like)
</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>New function 'luaL_addgsub'</title>
<updated>2019-04-24T17:41:41+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-04-24T17:41:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=c65605151c5a335baf0a9ea251b19df5b2d3a905'/>
<id>urn:sha1:c65605151c5a335baf0a9ea251b19df5b2d3a905</id>
<content type='text'>
Added a new function 'luaL_addgsub', similar to 'luaL_gsub' but that
adds its result directly to a preexisting buffer, avoiding the creation
of one extra intermediate string. Also added two simple macros,
'luaL_bufflen' and 'luaL_buffaddr', to query the current length
and the contents address of a buffer.
</content>
</entry>
</feed>
