Re: Minor documentation inconsistency
Roberto Ierusalimschy <[email protected]> Mon, 6 Jul 2026 14:59:26 -0300
| Newsgroups | gmane.comp.lang.lua.general |
|---|---|
| Message-ID | <[email protected]> |
> It seems like "global attnamelist" is also wrong in another way: When you > don't supply the ['=' explist], it doesn't accept a spread attribute (first > attribute shared between all declared values). Are you talking about the code or the documentation? Which version? > Also, it seems like it ignores the const-ness of global variables. > Valid: > > global test<const> = 45 > > test = 23 > > What's up with that? Each line in the REPL is an independent chunk. The scope of 'global' goes only until the end of the chunk (in that case, end of the line). -- Roberto -- You received this message because you are subscribed to the Google Groups "lua-l" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/lua-l/20260706175926.GA35563%40arraial.inf.puc-rio.br.