Re: Minor documentation inconsistency
Peter Clayton <[email protected]> Thu, 2 Jul 2026 16:16:20 -0700 (PDT)
| 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).
Invalid:
global <const> varA, varB
Valid:
global <const> varA, varB = 1,2
Valid:
global varA<const> varB<const>
Also, it seems like it ignores the const-ness of global variables.
Valid:
> global test<const> = 45
> test = 23
What's up with that?
-- Peter
On Saturday, February 7, 2026 at 12:49:17 PM UTC-5 Roberto Ierusalimschy
wrote:
> > Looks like "global" declaration statement is put incomplete in
> > EBNF syntax section:
> >
> > https://lua.org/manual/5.5/manual.html#9
> >
> > [...]
>
> Many thanks for the feedback.
>
> -- 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/f6cf6cfd-c404-471e-9509-1d2017545e5fn%40googlegroups.com.