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

Lua函数无法使用unpack传参 #9

Closed
nashnie opened this issue Sep 20, 2018 · 4 comments
Closed

Lua函数无法使用unpack传参 #9

nashnie opened this issue Sep 20, 2018 · 4 comments

Comments

@nashnie
Copy link

nashnie commented Sep 20, 2018

嗨你好。
我们打算写一个基于xlua的事件系统,function(unpack(args)),这种写法无法触发回调。独立slua的测试时是可以的。

@nashnie
Copy link
Author

nashnie commented Sep 20, 2018

https://github.com/nashnie/LuaEventTest/blob/master/Scripts/eventlib.lua
174行
这个是独立测试的代码,可以通过。
基于slua是不可以的。

@pangweiwei
Copy link
Collaborator

不明白你什么意思?xlua和这里啥关系?

@nashnie
Copy link
Author

nashnie commented Sep 25, 2018

不好意思写错了,是slua。接入slua后,我的一个事件系统无法正常使用了,所以想问下你是不是slua不支持
func(unpack(self.args)) 这种用法。

@pangweiwei
Copy link
Collaborator

不是啊,slua unreal 用的是lua5.3
unpack = table.unpack

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

2 participants