elua: take __tostring from object metatable on robjects

This commit is contained in:
Daniel Kolesa 2015-03-02 16:10:32 +00:00
parent 1392518ec2
commit 79a01f9ab3
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ M.Readonly_Object.__call = function(self, ...)
local r = newproxy(true)
local rmt = getmetatable(r)
rmt.__index = self
rmt.__tostring = self.__tostring
rmt.__tostring = Object_MT.__tostring
rmt.__metatable = false
if self.__enable_dtor then
rmt.__gc = robj_gc