To elaborate, this is what currently happens:
lua> setmetatable({}, { __tostring = function() return "Hello!" end })
{}
What should instead happen is this:
lua> setmetatable({}, { __tostring = function() return "Hello!" end })
Hello!
While you can achieve the desired behaviour by wrapping the expression in a tostring call, I think it should behave this way by default even though it's a minor detail.


This topic is locked










