Re: [Oddity] _G in package.loaded
ppp vvv <[email protected]> Sun, 14 Jun 2026 02:28:57 -0700 (PDT)
| Newsgroups | gmane.comp.lang.lua.general |
|---|---|
| Message-ID | <[email protected]> |
Does this also mean that it is not a good idea to use luaL_requiref(L, "_G", ...) to load another library as "global" into _G, because package.loaded._G is already occupied by baselib and it would not actually load it because "package not already loaded"? суббота, 13 июня 2026 г. в 04:28:13 UTC+2, Martin Eden: > Thanks for the replies > > I was perceiving _G like global namespace alias. But it's wrong. > _G is just another table special is that it's default package when > resolving name. > > Tangentially I appreciate style in code listings on Lua site. > Comparing with github it's like modern and baroque, One is centered > on content, other on frame. > > -- 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/c1abd88e-f278-459b-aaf7-48d8df55a1c9n%40googlegroups.com.