Re: Uncertain about luabind
Taesoo Kwon <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
I think you have to put c_x in a structure to make it a reference. Lua number is always treated as a value. On Thu, Jan 14, 2010 at 9:53 AM, Tomas Cokis <[email protected]> wrote: > > > > Teto-2 wrote: > > > > > > It perfeclty accept pointers for example: global_vars["Level"] = this; > > > > > > When I try this: > > double c_x; > > object global_vars = globals(m_LuaState); > > global_vars["c_x"] = &c_x; // It SIGABRT's me here > > while if I simply try: > > global_vars["c_x"] = c_x; > > it runs fine - so if its accepting pointer for you its not for me. > > I have found a work around > > globals(m_LuaState)["c_x"] = c_x; // For sending > > c_x = luabind::object_cast<float>(luabind::globals(m_LuaState)["c_x"]); // > For reading > > If there is a way to do it with pointers though I would really like to know > - having to run through a refresh list to sync really sucks. > -- > View this message in context: > http://old.nabble.com/Uncertain-about-luabind-tp27160576p27162485.html > Sent from the Lua C++ Bind mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > luabind-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/luabind-user > ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ luabind-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luabind-user