<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua/manual, branch v5.4-beta</title>
<subtitle>A mirror of https://github.com/lua/lua
</subtitle>
<id>https://git.lua4.win/lua/atom?h=v5.4-beta</id>
<link rel='self' href='https://git.lua4.win/lua/atom?h=v5.4-beta'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/'/>
<updated>2019-10-08T13:34:43+00:00</updated>
<entry>
<title>Improvements in the manual around metamethods</title>
<updated>2019-10-08T13:34:43+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-10-08T13:34:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=6c0e44464b9eef4be42e2c8181aabfb3301617ad'/>
<id>urn:sha1:6c0e44464b9eef4be42e2c8181aabfb3301617ad</id>
<content type='text'>
</content>
</entry>
<entry>
<title>'setCstacklimit' renamed to 'setcstacklimit'</title>
<updated>2019-09-24T17:31:06+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-09-24T17:31:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=03cde80b58ea7f112f1b7a35c037893093b59f2e'/>
<id>urn:sha1:03cde80b58ea7f112f1b7a35c037893093b59f2e</id>
<content type='text'>
Function names in the API use only lowercase letters.
</content>
</entry>
<entry>
<title>Default for warnings changed to "off"</title>
<updated>2019-08-20T16:42:26+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-08-20T16:42:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=be78aeae4c429d7d68af3a3e1b0cf8e52fcff160'/>
<id>urn:sha1:be78aeae4c429d7d68af3a3e1b0cf8e52fcff160</id>
<content type='text'>
Warnings are mostly a tool to help developers (e.g., by showing hidden
error messages); regular users usually don't need to see them.
</content>
</entry>
<entry>
<title>Manual corrected with the new syntax for attributes</title>
<updated>2019-08-16T19:11:21+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-08-16T19:11:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=45948e7e55c753cf0e370b251ac1d4e7f3aabedd'/>
<id>urn:sha1:45948e7e55c753cf0e370b251ac1d4e7f3aabedd</id>
<content type='text'>
Commit 0d529138042, with the change in the syntax of attributes,
did not update the manual accordingly.
</content>
</entry>
<entry>
<title>Added macro 'luaL_pushfail'</title>
<updated>2019-08-16T17:58:02+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-08-16T17:58:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=b96b0b5abbf40cbdbed7952bf35a5a27ddf75928'/>
<id>urn:sha1:b96b0b5abbf40cbdbed7952bf35a5a27ddf75928</id>
<content type='text'>
The macro 'luaL_pushfail' documents all places in the standard libraries
that return nil to signal some kind of failure. It is defined as
'lua_pushnil'. The manual also got a notation (@fail) to document those
returns. The tests were changed to be agnostic regarding whether 'fail'
is 'nil' or 'false'.
</content>
</entry>
<entry>
<title>Supressed errors in '__close' generate warnings</title>
<updated>2019-08-16T12:51:54+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-08-16T12:51:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=ca13be9af784b7288d3a07d9b5bccb329086e885'/>
<id>urn:sha1:ca13be9af784b7288d3a07d9b5bccb329086e885</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Added control messages to warnings</title>
<updated>2019-08-15T16:44:36+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-08-15T16:44:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=a1d8eb27431c02c4529be1efd92143ad65434f3a'/>
<id>urn:sha1:a1d8eb27431c02c4529be1efd92143ad65434f3a</id>
<content type='text'>
Added the concept of control messages to the warning system, plus the
implementation of the controls "@on"/"@off" to turn warnings on/off.
Moreover, the warning system in the test library adds some other
controls to ease the test of warnings.
</content>
</entry>
<entry>
<title>Detail in the manual (method 'file:setvbuf')</title>
<updated>2019-08-12T14:26:08+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-08-12T14:26:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=09b4e527a008687a2fd90202b5e7b2f175d8ebed'/>
<id>urn:sha1:09b4e527a008687a2fd90202b5e7b2f175d8ebed</id>
<content type='text'>
ANSI C is vague about 'setvbuf'; most details are implementation
defined. So, the manual cannot give any guaranties, either.
</content>
</entry>
<entry>
<title>Correction in the documentation of 'io.lines'</title>
<updated>2019-07-31T14:41:59+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-07-31T14:41:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=223bb04090344b1972dc2a7910a54b46210f0d40'/>
<id>urn:sha1:223bb04090344b1972dc2a7910a54b46210f0d40</id>
<content type='text'>
The loop does not end on end of file, but when the iterator function
fails to read a value. (In particular, the format "a" never fails,
so a loop with 'io.lines(fname, "a")' never ends.)
</content>
</entry>
<entry>
<title>To-be-closed variables must be closed on initialization</title>
<updated>2019-07-31T13:43:51+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-07-31T13:43:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=f645d3157372c73573dff221c5b26691cb0e7d56'/>
<id>urn:sha1:f645d3157372c73573dff221c5b26691cb0e7d56</id>
<content type='text'>
When initializing a to-be-closed variable, check whether it has a
'__close' metamethod (or is a false value) and raise an error if
if it hasn't. This produces more accurate error messages. (The
check before closing still need to be done: in the C API, the value
is not constant; and the object may lose its '__close' metamethod
during the block.)
</content>
</entry>
</feed>
