Re: [Oddity] _G in package.loaded
ppp vvv <[email protected]> Fri, 12 Jun 2026 07:39:26 -0700 (PDT)
| Newsgroups | gmane.comp.lang.lua.general |
|---|---|
| Message-ID | <[email protected]> |
> And no, I have no "require('_G')" in my code
you do have luaL_openlibs before your code.
string library is loaded into table called 'string' ->
package.loaded.string
os library is loaded into table called 'os' -> package.loaded.os
base library loaded directly into _G table
пятница, 12 июня 2026 г. в 16:06:39 UTC+2, Martin Eden:
> On 2026-06-12 15:42, Luiz Henrique de Figueiredo wrote:
> >> "_G" is present in "package.loaded":
> >> Any ideas why it's so?
> > https://www.lua.org/source/5.5/linit.c.html
> > https://www.lua.org/source/5.5/lauxlib.h.html#LUA_GNAME
> >
> Yeah but my "why" was aimed for different plane.
>
> -- Martin
>
>
--
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/dd8a975a-bf6d-4134-825c-02d612c8f37en%40googlegroups.com.