lua-users home
lua-l archive

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


A struct of pointers sounds like a better idea than what I had been trying! I will need to do some grunt work to define and initialize the struct, but it has the advantage of needing less magic overall.

> One disadvantage may be that invoking these functions must always be done
through a function pointer.

This might not be a disadvantage, actually. Dynamic linking is implemented using function pointers, meaning that the other versions I talked about also use function pointers under the hood.

-- Hugo