lua-users home
lua-l archive

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

Dear all,

Is there a way to find out whether metatable methods __pairs() and __ipairs() are invoked by pairs() and ipairs() other than
checking _VERSION (my code will be run in an exotic environment)
or probing, i.e. defining such metamethods for a dummy table and checking, if they are actually called?

Alexander Mashin