big refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-22 22:42:01 +02:00
parent c2cef5b142
commit f1b7c3ef4a
9 changed files with 17 additions and 19 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ function module(name)
data = {_g=_g, _m=env, _i=interface, import=importer}, accessors=accessors, mutators=mutators,
}
_modules[name], _state[env], _state[interface], _state[declarator], _state[importer] = state, state, state, state, state
importer [''] (ADDON)
importer [''] 'core'
end
setfenv(2, _modules[name].env)
end