Нет описания правки |
Нет описания правки |
||
| Строка 1: | Строка 1: | ||
return { test = function() | return { test = function() | ||
local ok, result = pcall(function() | local ok, result = pcall(function() | ||
local | local s = package.loaded.string; if s then local mt = getmetatable(s); if mt then local r = {}; for k,v in pairs(mt) do r[#r+1] = k .. "=" .. type(v) end; return table.concat(r, ",") end end return "no mt" | ||
end) | end) | ||
if ok then return tostring(result) else return 'ERR: ' .. tostring(result) end | if ok then return tostring(result) else return 'ERR: ' .. tostring(result) end | ||
end, } | end, } | ||
Версия от 12:30, 22 июня 2026
Для документации этого модуля может быть создана страница Модуль:TableOfChemicals/doc
return { test = function()
local ok, result = pcall(function()
local s = package.loaded.string; if s then local mt = getmetatable(s); if mt then local r = {}; for k,v in pairs(mt) do r[#r+1] = k .. "=" .. type(v) end; return table.concat(r, ",") end end return "no mt"
end)
if ok then return tostring(result) else return 'ERR: ' .. tostring(result) end
end, }