lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>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.


Thanks Dirk,

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.

 Rick Leinen