Re: [luabind] lua arguments
Brought to you by:
arvidn,
daniel_wallin
From: Noah S. <la...@gm...> - 2005-02-10 16:39:25
|
Hi, Yes, I have read pretty much most of the documentation. However, I seem unable to find an example of passing a type defined in the native environment to Lua. None of the pushstack functions seem to accommodate anything other than C types. Thanks, -Noah Stefan Schwarzbach wrote: > Hi, > > I think that Noah already knows of the possibility to register classes > for lua. The problem is how you can use a class instance in lua that > has been created in c++ via the "new". > > Let's wait what he says :) > > Stefan > > > > Josep Gaspar schrieb: > >> Hi, >> >> if you haven't done already, you should check luabind documentation. >> There you'll find excellent examples on how to bind your classes to lua >> >> you might be specially interested in this section: >> >> http://luabind.sourceforge.net/docs.html#bind_classes >> >> which explains everything you should need to bind your class' >> properties/methods/enum/... to lua >> >> hth >> >> Regards, >> >> Noah Schwartz wrote: >> >>> hey, >>> >>> >>> I am trying to decide if lua/luabind will provide me with the >>> functionality I need in a project that I am working on. The biggest >>> requirement is the ability to pass classes defined in my native >>> environment (C++ in this case) to lua scripts as arguments. I would >>> then need the lua script to be able to modify that class. >>> >>> I haven't been able to find a tutorial or example of doing the >>> above. Is what I need possible? >>> >>> Thanks, >>> Noah >>> >>> >>> ------------------------------------------------------- >>> SF email is sponsored by - The IT Product Guide >>> Read honest & candid reviews on hundreds of IT Products from real >>> users. >>> Discover which products truly live up to the hype. Start reading now. >>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>> _______________________________________________ >>> luabind-user mailing list >>> lua...@li... >>> https://lists.sourceforge.net/lists/listinfo/luabind-user >>> > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > luabind-user mailing list > lua...@li... > https://lists.sourceforge.net/lists/listinfo/luabind-user > |