Re: callbacks with the C API
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: callbacks with the C API
- From: Peter Pimley <peter.pimley@...>
- Date: 2012年3月13日 13:15:39 +0000
I'd be interested to know if it works or not!
Bear in mind that it's not going to be as memory efficient as if you did have a C structure. I don't know how expensive a new Lua thread is, but I'm sure it would be more than (lua_State* + int from luaL_ref), which is all you'd need a custom struct to hold. Whether that is acceptable or not depends entirely on your circumstances, of course.