kynikos/wiki-monkey — Issue #7: Pass arguments to user functions
Author: kynikos
Created: 2011-12-19 01:11:21+00:00
State: open
Labels: API requests

(not exactly related to the API, but still involves changing the core script)

The top level of main's multidimensional input array should accept an additional array to let the user pass some arguments to user functions.
For example instead of the current:

[UF_myFunction, "myFunction", false]

it should be:

[UF_myFunction8, [arg1, arg2, arg3, ...], "myFunction8", true]

If a user function doesn't accept arguments, an empty array must be used (or null?)

Note that using the second index would break backward compatibility, so all users must be warned.