lua-users home
lua-l archive

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


> Could someone remind me why Lua stringifies an object o by way of
> getmetatable(o).__tostring(o) rather than o:__tostring()?

In my libraries and probably many others, the two expressions are equivalent.