<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/lua-github.git/testes/files.lua, branch v5.4.4</title>
<subtitle>github.com: lua/lua.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/lua-github.git/'/>
<entry>
<title>Fixed bug: invalid mode can crash 'io.popen'</title>
<updated>2020-07-15T19:01:03+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-07-15T19:01:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/lua-github.git/commit/?id=1ecfbfa1a1debd2258decdf7c1954ac6f9761699'/>
<id>1ecfbfa1a1debd2258decdf7c1954ac6f9761699</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</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='http://git.baserock.org/cgit/delta/lua-github.git/commit/?id=b96b0b5abbf40cbdbed7952bf35a5a27ddf75928'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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'.
</pre>
</div>
</content>
</entry>
<entry>
<title>Change in the syntax of attributes</title>
<updated>2019-07-30T15:18:19+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-07-30T15:18:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/lua-github.git/commit/?id=0d529138042563baf260366e19a7aa2c60a07174'/>
<id>0d529138042563baf260366e19a7aa2c60a07174</id>
<content type='text'>
Attributes changed to posfixed ('x &lt;const&gt;', instead of '&lt;const&gt; x'),
and "toclose" renamed to "close". Posfixed attributes seem to make it
clearer that it applies to only one variable when there are multiple
variables.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Attributes changed to posfixed ('x &lt;const&gt;', instead of '&lt;const&gt; x'),
and "toclose" renamed to "close". Posfixed attributes seem to make it
clearer that it applies to only one variable when there are multiple
variables.
</pre>
</div>
</content>
</entry>
<entry>
<title>Some improvements in date/time functions</title>
<updated>2019-07-24T18:01:59+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-07-24T18:01:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/lua-github.git/commit/?id=0eb6aa4013051c8c0148c09d8c85ee7cbdc96f42'/>
<id>0eb6aa4013051c8c0148c09d8c85ee7cbdc96f42</id>
<content type='text'>
- Range in date table extended to full 32 bits.
- Easier support for times represented as floats.
- Added more tests.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Range in date table extended to full 32 bits.
- Easier support for times represented as floats.
- Added more tests.
</pre>
</div>
</content>
</entry>
<entry>
<title>Details</title>
<updated>2019-07-10T17:58:31+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-07-10T17:58:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/lua-github.git/commit/?id=be8445d7e4b6122620c428877b51a27d464253d5'/>
<id>be8445d7e4b6122620c428877b51a27d464253d5</id>
<content type='text'>
In the generic for loop, it is simpler for OP_TFORLOOP to use the
same 'ra' as OP_TFORCALL. Moreover, the internal names of the loop
temporaries "(for ...)" don't need to leak internal details (even
because the numerical for loop doesn't have a fixed role for each of
its temporaries).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In the generic for loop, it is simpler for OP_TFORLOOP to use the
same 'ra' as OP_TFORCALL. Moreover, the internal names of the loop
temporaries "(for ...)" don't need to leak internal details (even
because the numerical for loop doesn't have a fixed role for each of
its temporaries).
</pre>
</div>
</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='http://git.baserock.org/cgit/delta/lua-github.git/commit/?id=d9f40e3f6fb61650240c47d548bee69b24b07859'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A variable can be declared const, which means it cannot be assigned to,
with the syntax 'local &lt;const&gt; name = exp'.
</pre>
</div>
</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='http://git.baserock.org/cgit/delta/lua-github.git/commit/?id=d881325c2fcbb6d2c434ec403b0bbe51ac200c7b'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Small correction in test about 'isdst'</title>
<updated>2019-04-22T15:31:29+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-04-22T15:31:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/lua-github.git/commit/?id=20b161e2859837e4f7fb1c19440ad7efe1588f1f'/>
<id>20b161e2859837e4f7fb1c19440ad7efe1588f1f</id>
<content type='text'>
The field 'isdst' can be false, so we cannot test its absence with
'if not D.isdst'; we must compare with nil for a correct test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The field 'isdst' can be false, so we cannot test its absence with
'if not D.isdst'; we must compare with nil for a correct test.
</pre>
</div>
</content>
</entry>
<entry>
<title>Corrected tests around non-portable 'isdst' in dates</title>
<updated>2019-04-09T21:44:13+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-04-09T21:44:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/lua-github.git/commit/?id=0f028b9008097f00aa3953a3425c72e7ae2b4c98'/>
<id>0f028b9008097f00aa3953a3425c72e7ae2b4c98</id>
<content type='text'>
The field 'isdst' in date tables may not be present; portable tests
should not assume it is.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The field 'isdst' in date tables may not be present; portable tests
should not assume it is.
</pre>
</div>
</content>
</entry>
<entry>
<title>To-be-closed variable in 'for' loop separated from the state</title>
<updated>2018-11-07T16:42:05+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2018-11-07T16:42:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/lua-github.git/commit/?id=7f6f70853c8a2730fca2e95d5968ad52cf470bda'/>
<id>7f6f70853c8a2730fca2e95d5968ad52cf470bda</id>
<content type='text'>
The variable to be closed in a generic 'for' loop now is the
4th value produced in the loop initialization, instead of being
the loop state (the 2nd value produced). That allows a loop to
use a state with a '__toclose' metamethod but do not close it.
(As an example, 'f:lines()' might use the file 'f' as a state
for the loop, but it should not close the file when the loop ends.)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The variable to be closed in a generic 'for' loop now is the
4th value produced in the loop initialization, instead of being
the loop state (the 2nd value produced). That allows a loop to
use a state with a '__toclose' metamethod but do not close it.
(As an example, 'f:lines()' might use the file 'f' as a state
for the loop, but it should not close the file when the loop ends.)
</pre>
</div>
</content>
</entry>
</feed>
