type of parameter

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

type of parameter

sevim golds
Hi,
 
I'm just coming to code with luabind. It's not easy. I have any problems :
 
In C++ , in have method with int parameter : void setToto(int param) .
This method is d├ęclared with .def(...).
In my script I call this method : myInstance.setToto(3)
But I have a problem :
Terminated with exception : no overloaded of 'setToto' matched  the arguments <number>
candidates ares
setToto<number>
 
 
Could you help me?
Thank
 
------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ luabind-user mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/luabind-user
Reply | Threaded
Open this post in threaded view
|

Re: type of parameter

Dmitriy Iassenev
sg> In my script I call this method : myInstance.setToto(3)
you should call

myInstance:setToto(3)

or

myInstance.setToto(myInstance,3)

--
Best regards,
 Dmitriy                            mailto:[hidden email]



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user