Re: Minor documentation inconsistency

Roberto Ierusalimschy <[email protected]> Fri, 10 Jul 2026 11:29:11 -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? 
> 
> I'm talking about the Lua 5.5 documentation: 
> https://lua.org/manual/5.5/manual.html#9.

The documentation there says this:

  stat ::= [...] | global attnamelist
  attnamelist ::=  [attrib] Name [attrib] {‘,’ Name [attrib]}
  attrib ::= ‘<’ Name ‘>’

As already pointed out, it misses the optional ['=' explist]. Apart from
that, 'attnamelist' starts with the "spread attribute".

-- 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/20260710142911.GA88559%40arraial.inf.puc-rio.br.