Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

反馈HotReload.lua的一个疑问 #654

Open
jifengbu000 opened this issue Oct 10, 2023 · 0 comments
Open

反馈HotReload.lua的一个疑问 #654

jifengbu000 opened this issue Oct 10, 2023 · 0 comments

Comments

@jifengbu000
Copy link

jifengbu000 commented Oct 10, 2023

HotReload.lua模块中,update_global函数
源代码:

image

在nv不为nil的时候,是不是应该替换upvalue,然后遍历旧的v

                if nv then
                    debug.setupvalue(root, i, nv)
                    update_table(v)
                else
                    update_table(v)
                end

还有 userdata那里,是不是也是应该遍历旧的?
image

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

No branches or pull requests

1 participant