[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Lua Chunk Type
- From: "Leinen, Rick" <RLeinen@...>
- Date: Fri, 5 Aug 2016 21:13:28 +0000
>2016-08-05 22:15 GMT+02:00 Leinen, Rick <RLeinen@leviton.com>:
>> Or I guess it is more correct to say the function returned.
>A function is a first-class value, so you can store it in any Lua table. For example, the registry.
Yes I have seen that done, but is there any way I can save it as a C type and use lua_pushvalue just before calling lua_pcall?. This seems to be cleaner from the C side.