Re: Question about SETFIELD nil emission in table constructor codegen
'Bernard L'île' via lua-l <[email protected]>
| Newsgroups | gmane.comp.lang.lua.general |
|---|---|
| Message-ID | <[email protected]> |
> A table might have a metatable with '__index' entry, and so the table set or > field set operation might do something entirely different > (see 'luaV_finishset'). Yes of course, but for a table literal in source code, this cannot occur, as the table is created just in this moment of declaration, and the call to setmetatable() can only take place later. Jure Bagić schrieb am Samstag, 28. Februar 2026 um 21:10:44 UTC+1: > > A table might have a metatable with '__index' entry, and so the table > set or > > field set operation might do something entirely different > > (see 'luaV_finishset'). > > Nevermind, this is incorrect, for some reason I thought you could set a > global metatable for all tables just like for strings, however that is not > possible. > > -- > Jure > -- 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/335e1219-c879-4622-889b-ee0594e083c5n%40googlegroups.com.