Re: [luabind] Passing more than one parameters to a function in a table
Brought to you by:
arvidn,
daniel_wallin
From: framebuffer <fra...@gm...> - 2007-10-20 13:59:23
|
Thanks you James, your solution worked like a charm! James Porter-2 wrote: > > Looks like you found a bug! The return statement for two-variable calls > to luabind::object::operator() is wrong. It's supposed to return an > object of type > > call_proxy<Derived,boost::tuples::tuple<A0 const*, A1 const*> > > > but instead returns an object of type > > call_proxy<object,boost::tuples::tuple<A0 const*, A1 const*> > > > The offending text is on line 301 of object.hpp, at least in my copy of > the source. > > - James > > framebuffer wrote: >> Hello, I have a lua script as follows: >> > [snip] >> Also, passing no parameters obviously works fine >> StateAcON["Execute"] = function() >> (*pStates)["Execute"](); >> >> Does luabind allows us to send two parameters to functions? or do I have >> to >> wrap them in a structure? >> >> I am using the latest luabind trunk with lua 5.1.2, boost 1.34 >> >> Thanks for the help. >> fb. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > luabind-user mailing list > lua...@li... > https://lists.sourceforge.net/lists/listinfo/luabind-user > > -- View this message in context: http://www.nabble.com/Passing-more-than-one-parameters-to-a-function-in-a-table-tf4634416.html#a13310216 Sent from the Lua C++ Bind mailing list archive at Nabble.com. |