lua-users home
lua-l archive

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


On Nov 21, 2013, at 11:25 PM, Marc Lepage <mlepage@antimeta.com> wrote:

> It happens that I'm currently using a callable table, but the one other function I have in the table I'm OK to get rid of. So I can switch it to a function instead of a table. I am sort of asking if that's OK, nothing will break because it's a function instead of a table. I guess I'm good to go?

All good to go as long as nothing is explicitly checking for type() == ‘…'  anywhere… otherwise, from a, hmmm, functional point of view, a function and a callable table are exactly the same thing.