Hi.
I need to implement some specialized container class for squirrel but currently I stuck with this problem: I'm storing "strong" references to squirrel objects in my C++ implementation and I cant release them in my release hook because I dont have virtual machine pointer in it. Of course I can get HSQUIRRELVM in other ways but I am afraid that this will be not correct to do some operations with vm in release hook function. The other way is to store in my C++ code only weak references but duplicate them in squirrel builtin array (which will be adde to members of my class) but it is also triky solution.
So I'm wonder is there good way to implement in c++ custom containers for squirrel objects without using squirrel arrays or tables?
Thanks and sorry for my english.