Re: Unclear grammar for global in 5.5
Sergey Bronnikov <[email protected]> Thu, 16 Jul 2026 05:08:20 -0700 (PDT)
| Newsgroups | gmane.comp.lang.lua.general |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_325386_1444119765.1784203700673 Content-Type: multipart/alternative; boundary="----=_Part_325387_2136585585.1784203700673" ------=_Part_325387_2136585585.1784203700673 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thursday, July 16, 2026 at 2:49:45=E2=80=AFPM UTC+3 Luiz Henrique de Fig= ueiredo=20 wrote: > I'm confused by the absence of the "[=E2=80=98=3D=E2=80=99 explist]" in t= he rule for=20 "global".=20 This has been fixed in Lua 5.5.1. See=20 https://www.lua.org/work/doc/manual.html#9 Thanks! Is it a bug? $ ./lua -e "global a; print()" ./lua: (command line):1: variable 'print' not declared Sergey =20 --=20 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 e= mail to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/lua-l/d6334= 43a-b0ba-483d-966d-9e5812909e9cn%40googlegroups.com. ------=_Part_325387_2136585585.1784203700673 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <br /><br /><div><div dir=3D"auto">On Thursday, July 16, 2026 at 2:49:45=E2= =80=AFPM UTC+3 Luiz Henrique de Figueiredo wrote:<br /></div><blockquote st= yle=3D"margin: 0px 0px 0px 0.8ex; border-left: 1px solid rgb(204, 204, 204)= ; padding-left: 1ex;">> I'm confused by the absence of the "[=E2=80=98= =3D=E2=80=99 explist]" in the rule for "global". <br /> <br />This has been fixed in Lua 5.5.1. See <br /><a href=3D"https://www.lua.org/work/doc/manual.html#9" target=3D"_bla= nk" rel=3D"nofollow">https://www.lua.org/work/doc/manual.html#9</a></blockq= uote><div><br /></div><div>Thanks!</div><div><br /></div><div>Is it a bug?<= /div><div><br /></div><div><div></div><div>$ ./lua -e "global a; print()"<b= r />./lua: (command line):1: variable 'print' not declared</div><div><br />= </div><div>Sergey</div>=C2=A0</div></div> <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;lua-l" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:[email protected]">lua-l+unsubsc= [email protected]</a>.<br /> To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/= lua-l/d633443a-b0ba-483d-966d-9e5812909e9cn%40googlegroups.com?utm_medium= =3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/lua-l/d6334= 43a-b0ba-483d-966d-9e5812909e9cn%40googlegroups.com</a>.<br /> ------=_Part_325387_2136585585.1784203700673-- ------=_Part_325386_1444119765.1784203700673--