Re: Hyphens in module names & -l option

Roberto Ierusalimschy <[email protected]>
Newsgroups gmane.comp.lang.lua.general
Message-ID <[email protected]>
>     $ lua -l lua-utf8 -e 'print(_G["lua-utf8"].len("test"))'
> [...]
> So I'm wondering: were such hyphen-ated names considered with that -l behavior
> change, and if not, is it a common enough use case that the patch potentially
> breaks the stability promise of the 5.4 version?

If we go along this line, then commit 65434b4d also broke compatibility,
at it disallowed module names that contain '='.

When the documentation says "global 'mod'", it is implicit that 'mod' is
a valid global name. The fact that _G["lua-utf8"] worked before is a bug,
not a feature.

-- 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/20260416202236.GA328287%40arraial.inf.puc-rio.br.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.