-
Notifications
You must be signed in to change notification settings - Fork 142
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
Question: How can I call a lua function with Erlang terms? #169
Comments
You can't! Code written in Lua cannot access general raw Erlang data structures, it can only access data in the right formats passed in the right format and will only return data in that format. It is up to the caller to encode/decode the data. If you check the documentation for the When you called You will find all the current Luerl documentation in the github Luerl wiki which also contains a lot of examples. I am in the process of migrating that documentation to the repo itself so it will be included when you download Luerl. So far I have only done the interface modules The Hopefully this will help you a bit. Check the wiki and look in the Tyler, there is also a Luerl slack workspace mentioned in the README and the wiki as well. And discord as well for that matter. |
Actually an extra comment here. The variable |
I'm trying to call a Lua function with Erlang terms like maps.
I've had 2 ideas so far:
But this only ever returns an empty list rather than the
[1, 2, 3]
or#tref
output I'd expectWhat is the intended method of calling lua methods from erlang with a set of given arguments?
The text was updated successfully, but these errors were encountered: