   Lua: bind member functions if VM is in same class?
  Hello, I'm trying to make a system which can run several games simultaneously, and I'm using Lua as the scripting language. As far as I've gathered, it's not possible to bind member functions unless they are decared static, which makes sense. But is it possible to bind a member function if the lua_State is a member of that same class? This would mean that you get one virtual machine for each instance of this class, of course, and that's the functionality I want.  For those who only speak code:class Game{private:// Member VMlua_State * L;public:Game();~Game();// etc ...// Can this be called from a lua script using the member lua_State?void affectGameInSomeWay();};Has anyone ever tried anything like this?Thanks!   