-
Notifications
You must be signed in to change notification settings - Fork 2
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
调用arkts函数有问题 #24
Comments
@richerfu Please check this issue, thanks. |
请给一个复现的 case @liujingxuan |
好的好的,这个是我的arkts代码: 这个是我大rust代码: match module.call::<_, , ()>(&method, args) { 两个string传进去后,得到的现象就是arkts的数据,第一个有两个字符串拼接的,比如str1,str2,但是第二个没有。不知道哪里写的有问题。我也深入到源码分析了,没看出来。多谢啊 @richerfu |
多参数使用元组传递 Vec 会被转成数组 |
有没有什么好的方法呢,传入多个参数呢 |
当参数为多个参数的时候,会出问题,比如, args是"string11","string22", 但是最后是:string11string22, undefine。所有参数会集中在第一个。
match module.call::<_, , ()>(&method, args) {
Ok() => qlog!(" successful"),
Err(e) => qlog!("failed: {:?}", e),
}
The text was updated successfully, but these errors were encountered: