tbc loop change part 3

This commit is contained in:
Manuel Simon Hirsig
2017-06-02 19:51:28 +02:00
parent d4b089d508
commit 4c5a7f2a75
9 changed files with 39 additions and 40 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ end
function include(self, name)
local module = name and loaded[name] or error('No module "%s".', name)
for k, v in module.public_fields do define(self, k, v, true) end
for k, v in pairs(module.public_fields) do define(self, k, v, true) end
end
public_modifier_mt = {__metatable=false, __newindex=define}