全局变量异常 #4319
Unanswered
Dozingfiretruck
asked this question in
Q&A
全局变量异常
#4319
Replies: 2 comments 15 replies
-
不要跨脚本域访问描述域变量,我限制了。。 不要访问 _G ,我也限制了。。 |
Beta Was this translation helpful? Give feedback.
15 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Xmake 版本
xmake v2.8.3+dev.654050350
操作系统版本和架构
win10
描述问题
例如:
a = "qqq"
local b = "www"
target("xxx")
after_build(function(target)
print(a)--nil
print(b)--"www"
end)
target_end()
另外也没有_G全局表
期待的结果
全局变量可以所有xmake和阶段访问到
工程配置
无
附加信息和错误日志
无
Beta Was this translation helpful? Give feedback.
All reactions