<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua/testes/goto.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-08T14:43:42+00:00</updated>
<entry>
<title>Global initialization checks name conflict</title>
<updated>2025-11-08T14:43:42+00:00</updated>
<author>
<name>Roberto I</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-11-08T14:43:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=e44f3a2ffc7ced5e75cca7657aaa60ef27da89aa'/>
<id>urn:sha1:e44f3a2ffc7ced5e75cca7657aaa60ef27da89aa</id>
<content type='text'>
Initialization "global a = 10" raises an error if global 'a' is already
defined, that is, it has a non-nil value.
</content>
</entry>
<entry>
<title>Fixed initialization of global variables</title>
<updated>2025-10-29T16:14:48+00:00</updated>
<author>
<name>Roberto I</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-10-29T16:14:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=d4eff00234dc55dac4cb86b6187f5607c1254f9b'/>
<id>urn:sha1:d4eff00234dc55dac4cb86b6187f5607c1254f9b</id>
<content type='text'>
When calling 'luaK_storevar', the 'expdesc' for the variable must be
created before the one for the expression, to satisfy the assumptions
for register allocation. So, in a statement like 'global a = exp', where
'a' is actually '_ENV.a', this variable must be handled before the
initializing expression 'exp'.
</content>
</entry>
<entry>
<title>Optional initialization for global declarations</title>
<updated>2025-07-08T16:33:57+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-07-08T16:33:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=942c10a5e33811a08a290ec15031c950a6d17c99'/>
<id>urn:sha1:942c10a5e33811a08a290ec15031c950a6d17c99</id>
<content type='text'>
</content>
</entry>
<entry>
<title>No need to limit variable declarations to 250</title>
<updated>2025-06-18T19:45:55+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-06-18T19:45:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=07b009c3712c062957593d0a4fa82e0fe9023024'/>
<id>urn:sha1:07b009c3712c062957593d0a4fa82e0fe9023024</id>
<content type='text'>
Only local variables, which use registers, need this low limit.
</content>
</entry>
<entry>
<title>New way to control preambular declaration</title>
<updated>2025-05-20T20:36:05+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-05-20T20:36:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=be05c444818989463dc307eed283503d391f93eb'/>
<id>urn:sha1:be05c444818989463dc307eed283503d391f93eb</id>
<content type='text'>
Validity of the preambular global declaration in controled together
with all declarations, when checking variable names.
</content>
</entry>
<entry>
<title>Proper error message when jumping into 'global *'</title>
<updated>2025-05-18T15:03:54+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-05-18T15:03:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=6d53701c7a0dc4736d824fd891ee6f22265d0d68'/>
<id>urn:sha1:6d53701c7a0dc4736d824fd891ee6f22265d0d68</id>
<content type='text'>
A goto cannot jump into the scope of any variable declaration,
including 'global *'. To report the error, it needs a "name" for
the scope it is entering.
</content>
</entry>
<entry>
<title>Variable attributes can prefix name list</title>
<updated>2025-05-18T14:43:43+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-05-18T14:43:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=abbae57c7844b1121e7251d56f681394f20c1821'/>
<id>urn:sha1:abbae57c7844b1121e7251d56f681394f20c1821</id>
<content type='text'>
In this format, the attribute applies to all names in the list;
e.g. "global&lt;const&gt; print, require, math".
</content>
</entry>
<entry>
<title>Collective declaration for globals ('global *')</title>
<updated>2025-05-13T14:43:10+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-05-13T14:43:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=3b9dd52be02fd43c598f4adb6fa7844e6a573923'/>
<id>urn:sha1:3b9dd52be02fd43c598f4adb6fa7844e6a573923</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Correct line in error message for constant function</title>
<updated>2025-05-12T14:42:45+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-05-12T14:42:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=7dc6aae29057c9dc4588f780c7abd72a62ff4c8e'/>
<id>urn:sha1:7dc6aae29057c9dc4588f780c7abd72a62ff4c8e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>New syntax 'global function'</title>
<updated>2025-05-08T14:08:03+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-05-08T14:08:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=3f0ea90aa8b8493485637f6e8d2a070a1ac0d5cb'/>
<id>urn:sha1:3f0ea90aa8b8493485637f6e8d2a070a1ac0d5cb</id>
<content type='text'>
</content>
</entry>
</feed>
