18 years, 3 months ago
Highlights
Hello.luaL_ref does what ddn3 suggests. Recently, I needed to attach arbitrary Lua data to Shape objects for collision response purposes. Here's some code:(Table love.refs holds…
18 years, 3 months ago
18 years, 5 months ago
What would be the best way of managing several Lua files? I know that you can push functions onto the stack by using lua_getglobal(L, "init"), after which it can be called…
19 years, 11 months ago
Hello everyone. Suppose I have the following Cpp code: class Foo { const char * bar(); ... }; typedef boost::shared_ptr<Foo> pFoo; // And: pFoo make_foo() { // .. somehow…
19 years, 11 months ago
Hello, If I compile a program using the Multi-Thread (Debug) DLL option, it runs on any computer with VS20005, but on computers without, I get a message saying "the pr…
20 years, 4 months ago
Latest Activity
See all in DiscussionsHello.luaL_ref does what ddn3 suggests. Recently, I needed to attach arbitrary Lua data to Shape objects for collision response purposes. …
18 years, 3 months ago
Indeed. (^-^)I was trying to suggest that you could create a class which provides indirect access to some array.class ArrayWrap{ …
18 years, 5 months ago
SWIG can't do that automatically, at least not SWIG/Lua, but there are workarounds.From SWIG docs section 22.3.11:"It is also possible …
18 years, 5 months ago