| Issue 221: | Fix: Error always thrown calling primitives with more than 5 arguments | |
| 1 person starred this issue and may be notified of changes. | Back to list |
In file .hx:
static var test : Dynamic = Lib.load("whatever", "test", 6);
test(1,2,3,4,5,6);
throws an "Invalid Argument Count" Error.
Feb 2, 2013
Hi Hugh, Thank you for the explanation. I'll keep it in mind for hxndll project. Regards, German |
Hi, I have added code to allow this specification of the exact number of parameters. However, if you want to be compatible with neko, you should use "-1" for arg count > 5, eg: static var test : Dynamic = Lib.load("whatever", "test", -1);