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
Optional parameters / params list #190
Comments
In theory some support already exists http://www.moonsharp.org/objects.html#overload Personally I never got it to work, and ended up just creating multiple methods manually |
I know overloads work, but I would rather see support for optional arguments or even params that would work like lua func(...). Something like: |
You can do this with a
And then add it to a table via:
|
Thats good to know. |
I'm wondering if there is any way in getting optional paramaters and/or params lists to work with c# class methods.
It's kinda a pain in the ass making tons of overloads for everything.
If this is not already possible, this post can be considered as a feature request. Other libraries like NLua support this, so I guess it should be possible to implement.
The text was updated successfully, but these errors were encountered: