Skip to content

Conversation

@Joy-less
Copy link

local MT = {}
function MT:__newindex(key, value)
  print('['..key..'] = '..value)
end
local T = {}
setmetatable(T, MT)
T.A, T.B, T.C = 1, 2, 3

Previously, this would output

[A] = 1
[B] = 2
[C] = nil

With the fix, it outputs

[A] = 1
[B] = 2
[C] = 3

(This is a somewhat surface-level fix, the cause of the issue is probably very deep-rooted)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant