Skip to content
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

Max 5 params for a module method #5

Closed
fieldfoxWim opened this issue Apr 6, 2015 · 1 comment
Closed

Max 5 params for a module method #5

fieldfoxWim opened this issue Apr 6, 2015 · 1 comment

Comments

@fieldfoxWim
Copy link

Hi All

I have been struggling to find out why a module method, only supports 5 params. After searching on forums I finaly landed on the libqi source.
Can somebody confirm that lines 167 and further in libqi/qi/anyfunction.hpp are causing that limitation?
Thanks in advance

    class MathModule(ALModule):
        def __init__(self, name):
            ALModule.__init__(self, name)

        def sum(self, a, b, c, d, e):
            """ WORKING """
            print a + " " + b + " " + c + " " + d + " " + e

        def sum1(self, a, b, c, d, e, f):
             """ METHOD UNDEFINED """
             print a + " " + b + " " + c + " " + d + " " + e + " " + f

Thanks for your time

Best regards
Wim

@cgestes
Copy link
Contributor

cgestes commented Apr 7, 2015

libqi support 8 arguments (including self).

The limitation to 6 arguments comes from the old ALModule wrapper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants