Re: Luabind: derived classes!

hymedia <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <005a01c99865$2b00ee90$8102cbb0$@ca>
Hello there, for some reason my posts seem to have been delayed so I had no
idea on the follow-up, the good news is, I found what was causing my
problem, 

When creating a new LuaScript():

LuaScript::LuaScript(const Char *in_path): Script(in_path),
m_Lua(NULL)
{
	if ((m_Lua = lua_newthread(LUA_STATE)) != NULL)
	{
		lua_pushlightuserdata(LUA_STATE, m_Lua);
		lua_pushlightuserdata(LUA_STATE, this); <<<< wrong thing to
do!
		lua_settable(LUA_STATE, LUA_GLOBALSINDEX);
	}
}

And it works just fine now... except that another thing troubles me, I ll
make another post.




------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.