-
Notifications
You must be signed in to change notification settings - Fork 17
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
Problem parsing more than 9 input arguments #3
Comments
You have many default variables. But in the named argument case, that generates a lot of things, because you can specify any argument to be there or not (and argcheck checks all possible cases) If you do not need named arguments, then deactivate it with argcheck{nonamed=true, ...}, and you will be fine. If you really need named arguments for that case... hmmm... i have to think about workarounds which would work with luajit. I could also add an option such that the behavior is the same than with ordered arguments (like initcheck{x1="a", x2="b} is ok, but initcheck{x2="a", x3="b"} is not). |
Hi @andresy - any further thoughts on how to solve this? I'd like to overcome this in my application without using hacks like combining arguments into tables, manually defaulting values, or not using named arguments. I'd be happy to contribute some code to resolve this. -Brandon. |
@bamos I wrote a simple workaround function sometime ago specifically for this case. It would sure be much better to solve this problem in |
The following code snippet reproduces the problem:
Here is the error I get:
The text was updated successfully, but these errors were encountered: