module refactoring, fubar compatibility fix

This commit is contained in:
Manuel Simon Hirsig
2016-10-09 16:21:30 +02:00
parent a35690db1a
commit a26665148d
10 changed files with 385 additions and 405 deletions
+1
View File
@@ -49,6 +49,7 @@ function include(self, name)
end
function create_module(name)
if type(name) ~= 'string' then error('Invalid module name "%s".', name) end
local P, environment, interface, definition_helper, modifiers, accessors, mutators, fields, public_accessors, public_mutators, public_fields
environment, interface, definition_helper = {}, {}, setmetatable({}, definition_helper_mt)
accessors = { private=function() _access[definition_helper] = PRIVATE; return definition_helper end, public=function() _access[definition_helper] = PUBLIC; return definition_helper end }