> does that work if a is a Lua number? Like I said, it does work if the methods in your library work with objects and numbers, promoting numbers to objects as needed. This is what all my libraries do: https://web.tecgraf.puc-rio.br/~lhf/ftp/lua/