lua-users home
lua-l archive

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


2014-03-24 6:54 GMT+02:00  <katlogic@katsystems.eu>:

> To nitpick myself, make that debug.getmetatable("").__tonumber :)

Since nitpicking is in order: the non-debug metatable will do fine here.

You only ever need debug.getmetatable when accessing a locked
metatable (i.e. one that has a __metatable field).