Изменения

metatable
Строка 11: Строка 11:  
local memoized = {}
 
local memoized = {}
 
return function (...)
 
return function (...)
local key = {...}
+
local key = tostring {...}
 
if not memoized [key] then
 
if not memoized [key] then
 
memoized [key] = { func (...) }
 
memoized [key] = { func (...) }
Строка 229: Строка 229:  
return nil
 
return nil
 
end
 
end
return tag
+
return setmetatable (tag, {__tostring = serialise })
 
end,
 
end,
 
open = lt * spaces * Cg (possible, '__name') * V'attributes' * spaces * gt,
 
open = lt * spaces * Cg (possible, '__name') * V'attributes' * spaces * gt,