2011-06-19 19:07:01 +00:00
|
|
|
local Hello
|
2012-10-31 06:34:42 +00:00
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2011-07-14 07:02:07 +00:00
|
|
|
local _base_0 = {
|
|
|
|
hello = function(self)
|
|
|
|
return print(self.test, self.world)
|
|
|
|
end,
|
|
|
|
__tostring = function(self)
|
|
|
|
return "hello world"
|
|
|
|
end
|
|
|
|
}
|
2011-06-15 15:52:01 +00:00
|
|
|
_base_0.__index = _base_0
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2011-07-14 07:02:07 +00:00
|
|
|
__init = function(self, test, world)
|
2011-06-15 15:52:01 +00:00
|
|
|
self.test, self.world = test, world
|
|
|
|
return print("creating object..")
|
2011-12-04 03:17:06 +00:00
|
|
|
end,
|
|
|
|
__base = _base_0,
|
2013-06-26 03:05:20 +00:00
|
|
|
__name = "Hello"
|
2011-07-14 07:02:07 +00:00
|
|
|
}, {
|
2013-06-26 03:05:20 +00:00
|
|
|
__index = _base_0,
|
2011-10-02 05:20:29 +00:00
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
2011-07-14 07:02:07 +00:00
|
|
|
end
|
|
|
|
})
|
2011-07-04 18:36:26 +00:00
|
|
|
_base_0.__class = _class_0
|
2012-10-31 06:34:42 +00:00
|
|
|
Hello = _class_0
|
|
|
|
end
|
2011-06-15 06:13:33 +00:00
|
|
|
local x = Hello(1, 2)
|
|
|
|
x:hello()
|
2011-06-16 05:41:17 +00:00
|
|
|
print(x)
|
2011-06-19 19:07:01 +00:00
|
|
|
local Simple
|
2012-10-31 06:34:42 +00:00
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2011-07-14 07:02:07 +00:00
|
|
|
local _base_0 = {
|
|
|
|
cool = function(self)
|
|
|
|
return print("cool")
|
|
|
|
end
|
|
|
|
}
|
2011-06-16 05:41:17 +00:00
|
|
|
_base_0.__index = _base_0
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2013-06-26 03:05:20 +00:00
|
|
|
__init = function() end,
|
2011-12-04 03:17:06 +00:00
|
|
|
__base = _base_0,
|
2013-06-26 03:05:20 +00:00
|
|
|
__name = "Simple"
|
2011-07-14 07:02:07 +00:00
|
|
|
}, {
|
2013-06-26 03:05:20 +00:00
|
|
|
__index = _base_0,
|
2011-10-02 05:20:29 +00:00
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
2011-07-14 07:02:07 +00:00
|
|
|
end
|
|
|
|
})
|
2011-07-04 18:36:26 +00:00
|
|
|
_base_0.__class = _class_0
|
2012-10-31 06:34:42 +00:00
|
|
|
Simple = _class_0
|
|
|
|
end
|
2011-06-19 19:07:01 +00:00
|
|
|
local Yikes
|
2012-10-31 06:34:42 +00:00
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2011-10-02 05:20:29 +00:00
|
|
|
local _parent_0 = Simple
|
2011-07-14 07:02:07 +00:00
|
|
|
local _base_0 = { }
|
2011-06-16 05:41:17 +00:00
|
|
|
_base_0.__index = _base_0
|
2013-06-26 03:05:20 +00:00
|
|
|
setmetatable(_base_0, _parent_0.__base)
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2011-07-14 07:02:07 +00:00
|
|
|
__init = function(self)
|
|
|
|
return print("created hello")
|
2011-12-04 03:17:06 +00:00
|
|
|
end,
|
|
|
|
__base = _base_0,
|
|
|
|
__name = "Yikes",
|
|
|
|
__parent = _parent_0
|
2011-07-14 07:02:07 +00:00
|
|
|
}, {
|
2011-12-04 03:17:06 +00:00
|
|
|
__index = function(cls, name)
|
|
|
|
local val = rawget(_base_0, name)
|
2013-06-26 03:05:20 +00:00
|
|
|
if val == nil then
|
2015-11-20 02:15:51 +00:00
|
|
|
local parent = rawget(cls, "__parent")
|
|
|
|
if parent then
|
|
|
|
return parent[name]
|
|
|
|
end
|
2011-12-04 03:17:06 +00:00
|
|
|
else
|
|
|
|
return val
|
|
|
|
end
|
|
|
|
end,
|
2011-10-02 05:20:29 +00:00
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
2011-07-14 07:02:07 +00:00
|
|
|
end
|
|
|
|
})
|
2011-07-04 18:36:26 +00:00
|
|
|
_base_0.__class = _class_0
|
2013-06-26 03:05:20 +00:00
|
|
|
if _parent_0.__inherited then
|
2012-09-09 00:52:26 +00:00
|
|
|
_parent_0.__inherited(_parent_0, _class_0)
|
|
|
|
end
|
2012-10-31 06:34:42 +00:00
|
|
|
Yikes = _class_0
|
|
|
|
end
|
2011-06-16 05:41:17 +00:00
|
|
|
x = Yikes()
|
2011-06-19 19:07:01 +00:00
|
|
|
x:cool()
|
|
|
|
local Hi
|
2012-10-31 06:34:42 +00:00
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2011-07-14 07:02:07 +00:00
|
|
|
local _base_0 = {
|
|
|
|
cool = function(self, num)
|
|
|
|
return print("num", num)
|
|
|
|
end
|
|
|
|
}
|
2011-06-19 19:07:01 +00:00
|
|
|
_base_0.__index = _base_0
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2011-07-14 07:02:07 +00:00
|
|
|
__init = function(self, arg)
|
|
|
|
return print("init arg", arg)
|
2011-12-04 03:17:06 +00:00
|
|
|
end,
|
|
|
|
__base = _base_0,
|
2013-06-26 03:05:20 +00:00
|
|
|
__name = "Hi"
|
2011-07-14 07:02:07 +00:00
|
|
|
}, {
|
2013-06-26 03:05:20 +00:00
|
|
|
__index = _base_0,
|
2011-10-02 05:20:29 +00:00
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
2011-07-14 07:02:07 +00:00
|
|
|
end
|
|
|
|
})
|
2011-07-04 18:36:26 +00:00
|
|
|
_base_0.__class = _class_0
|
2012-10-31 06:34:42 +00:00
|
|
|
Hi = _class_0
|
|
|
|
end
|
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2011-10-02 05:20:29 +00:00
|
|
|
local _parent_0 = Hi
|
2011-07-14 07:02:07 +00:00
|
|
|
local _base_0 = {
|
|
|
|
cool = function(self)
|
2015-12-06 19:24:42 +00:00
|
|
|
return _class_0.__parent.__base.cool(self, 120302)
|
2011-07-14 07:02:07 +00:00
|
|
|
end
|
|
|
|
}
|
2011-06-19 19:07:01 +00:00
|
|
|
_base_0.__index = _base_0
|
2013-06-26 03:05:20 +00:00
|
|
|
setmetatable(_base_0, _parent_0.__base)
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2011-07-14 07:02:07 +00:00
|
|
|
__init = function(self)
|
2015-11-20 06:47:06 +00:00
|
|
|
return _class_0.__parent.__init(self, "man")
|
2011-12-04 03:17:06 +00:00
|
|
|
end,
|
|
|
|
__base = _base_0,
|
|
|
|
__name = "Simple",
|
|
|
|
__parent = _parent_0
|
2011-07-14 07:02:07 +00:00
|
|
|
}, {
|
2011-12-04 03:17:06 +00:00
|
|
|
__index = function(cls, name)
|
|
|
|
local val = rawget(_base_0, name)
|
2013-06-26 03:05:20 +00:00
|
|
|
if val == nil then
|
2015-11-20 02:15:51 +00:00
|
|
|
local parent = rawget(cls, "__parent")
|
|
|
|
if parent then
|
|
|
|
return parent[name]
|
|
|
|
end
|
2011-12-04 03:17:06 +00:00
|
|
|
else
|
|
|
|
return val
|
|
|
|
end
|
|
|
|
end,
|
2011-10-02 05:20:29 +00:00
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
2011-07-14 07:02:07 +00:00
|
|
|
end
|
|
|
|
})
|
2011-07-04 18:36:26 +00:00
|
|
|
_base_0.__class = _class_0
|
2013-06-26 03:05:20 +00:00
|
|
|
if _parent_0.__inherited then
|
2012-09-09 00:52:26 +00:00
|
|
|
_parent_0.__inherited(_parent_0, _class_0)
|
|
|
|
end
|
2012-10-31 06:34:42 +00:00
|
|
|
Simple = _class_0
|
|
|
|
end
|
2011-06-19 19:07:01 +00:00
|
|
|
x = Simple()
|
2011-07-04 18:36:26 +00:00
|
|
|
x:cool()
|
2011-08-29 06:19:48 +00:00
|
|
|
print(x.__class == Simple)
|
|
|
|
local Okay
|
2012-10-31 06:34:42 +00:00
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2011-08-29 06:19:48 +00:00
|
|
|
local _base_0 = {
|
|
|
|
something = 20323
|
|
|
|
}
|
|
|
|
_base_0.__index = _base_0
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2013-06-26 03:05:20 +00:00
|
|
|
__init = function() end,
|
2011-12-04 03:17:06 +00:00
|
|
|
__base = _base_0,
|
2013-06-26 03:05:20 +00:00
|
|
|
__name = "Okay"
|
2011-08-29 06:19:48 +00:00
|
|
|
}, {
|
2013-06-26 03:05:20 +00:00
|
|
|
__index = _base_0,
|
2011-10-02 05:20:29 +00:00
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
2011-08-29 06:19:48 +00:00
|
|
|
end
|
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
2012-10-31 06:34:42 +00:00
|
|
|
Okay = _class_0
|
|
|
|
end
|
2011-12-03 04:07:42 +00:00
|
|
|
local Biggie
|
2012-10-31 06:34:42 +00:00
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2011-12-03 04:07:42 +00:00
|
|
|
local _parent_0 = Okay
|
|
|
|
local _base_0 = {
|
|
|
|
something = function(self)
|
2015-12-06 19:24:42 +00:00
|
|
|
_class_0.__parent.__base.something(self, 1, 2, 3, 4)
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0.__parent.something(another_self, 1, 2, 3, 4)
|
|
|
|
return assert(_class_0.__parent == Okay)
|
2011-12-03 04:07:42 +00:00
|
|
|
end
|
|
|
|
}
|
|
|
|
_base_0.__index = _base_0
|
2013-06-26 03:05:20 +00:00
|
|
|
setmetatable(_base_0, _parent_0.__base)
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2011-12-03 04:07:42 +00:00
|
|
|
__init = function(self, ...)
|
2015-11-20 06:47:06 +00:00
|
|
|
return _class_0.__parent.__init(self, ...)
|
2011-12-04 03:17:06 +00:00
|
|
|
end,
|
|
|
|
__base = _base_0,
|
|
|
|
__name = "Biggie",
|
|
|
|
__parent = _parent_0
|
2011-12-03 04:07:42 +00:00
|
|
|
}, {
|
2011-12-04 03:17:06 +00:00
|
|
|
__index = function(cls, name)
|
|
|
|
local val = rawget(_base_0, name)
|
2013-06-26 03:05:20 +00:00
|
|
|
if val == nil then
|
2015-11-20 02:15:51 +00:00
|
|
|
local parent = rawget(cls, "__parent")
|
|
|
|
if parent then
|
|
|
|
return parent[name]
|
|
|
|
end
|
2011-12-04 03:17:06 +00:00
|
|
|
else
|
|
|
|
return val
|
|
|
|
end
|
|
|
|
end,
|
2011-12-03 04:07:42 +00:00
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
|
|
|
end
|
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
2013-06-26 03:05:20 +00:00
|
|
|
if _parent_0.__inherited then
|
2012-09-09 00:52:26 +00:00
|
|
|
_parent_0.__inherited(_parent_0, _class_0)
|
|
|
|
end
|
2012-10-31 06:34:42 +00:00
|
|
|
Biggie = _class_0
|
|
|
|
end
|
2011-12-03 04:37:47 +00:00
|
|
|
local Yeah
|
2012-10-31 06:34:42 +00:00
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2011-12-03 04:37:47 +00:00
|
|
|
local _base_0 = {
|
|
|
|
okay = function(self)
|
2015-11-20 06:47:06 +00:00
|
|
|
return _class_0.__parent.something(self, 1, 2, 3, 4)
|
2011-12-03 04:37:47 +00:00
|
|
|
end
|
|
|
|
}
|
|
|
|
_base_0.__index = _base_0
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2013-06-26 03:05:20 +00:00
|
|
|
__init = function() end,
|
2011-12-04 03:17:06 +00:00
|
|
|
__base = _base_0,
|
2013-06-26 03:05:20 +00:00
|
|
|
__name = "Yeah"
|
2011-12-03 04:37:47 +00:00
|
|
|
}, {
|
2013-06-26 03:05:20 +00:00
|
|
|
__index = _base_0,
|
2011-12-03 04:37:47 +00:00
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
|
|
|
end
|
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
2012-10-31 06:34:42 +00:00
|
|
|
Yeah = _class_0
|
|
|
|
end
|
2011-12-03 18:39:03 +00:00
|
|
|
local What
|
2012-10-31 06:34:42 +00:00
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2011-12-03 18:39:03 +00:00
|
|
|
local _base_0 = {
|
|
|
|
something = function(self)
|
|
|
|
return print("val:", self.val)
|
|
|
|
end
|
|
|
|
}
|
|
|
|
_base_0.__index = _base_0
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2013-06-26 03:05:20 +00:00
|
|
|
__init = function() end,
|
2011-12-04 03:17:06 +00:00
|
|
|
__base = _base_0,
|
2013-06-26 03:05:20 +00:00
|
|
|
__name = "What"
|
2011-12-03 18:39:03 +00:00
|
|
|
}, {
|
2013-06-26 03:05:20 +00:00
|
|
|
__index = _base_0,
|
2011-12-03 18:39:03 +00:00
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
|
|
|
end
|
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
2012-10-31 06:34:42 +00:00
|
|
|
What = _class_0
|
|
|
|
end
|
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2011-12-03 18:39:03 +00:00
|
|
|
local _parent_0 = What
|
|
|
|
local _base_0 = {
|
|
|
|
val = 2323,
|
|
|
|
something = function(self)
|
2015-11-20 06:47:06 +00:00
|
|
|
local _base_1 = _class_0.__parent
|
2014-02-05 17:29:39 +00:00
|
|
|
local _fn_0 = _base_1.something
|
|
|
|
return function(...)
|
|
|
|
return _fn_0(self, ...)
|
|
|
|
end
|
2011-12-03 18:39:03 +00:00
|
|
|
end
|
|
|
|
}
|
|
|
|
_base_0.__index = _base_0
|
2013-06-26 03:05:20 +00:00
|
|
|
setmetatable(_base_0, _parent_0.__base)
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2011-12-03 18:39:03 +00:00
|
|
|
__init = function(self, ...)
|
2015-11-20 06:47:06 +00:00
|
|
|
return _class_0.__parent.__init(self, ...)
|
2011-12-04 03:17:06 +00:00
|
|
|
end,
|
|
|
|
__base = _base_0,
|
|
|
|
__name = "Hello",
|
|
|
|
__parent = _parent_0
|
2011-12-03 18:39:03 +00:00
|
|
|
}, {
|
2011-12-04 03:17:06 +00:00
|
|
|
__index = function(cls, name)
|
|
|
|
local val = rawget(_base_0, name)
|
2013-06-26 03:05:20 +00:00
|
|
|
if val == nil then
|
2015-11-20 02:15:51 +00:00
|
|
|
local parent = rawget(cls, "__parent")
|
|
|
|
if parent then
|
|
|
|
return parent[name]
|
|
|
|
end
|
2011-12-04 03:17:06 +00:00
|
|
|
else
|
|
|
|
return val
|
|
|
|
end
|
|
|
|
end,
|
2011-12-03 18:39:03 +00:00
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
|
|
|
end
|
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
2013-06-26 03:05:20 +00:00
|
|
|
if _parent_0.__inherited then
|
2012-09-09 00:52:26 +00:00
|
|
|
_parent_0.__inherited(_parent_0, _class_0)
|
|
|
|
end
|
2012-10-31 06:34:42 +00:00
|
|
|
Hello = _class_0
|
|
|
|
end
|
2011-12-03 18:39:03 +00:00
|
|
|
do
|
|
|
|
local _with_0 = Hello()
|
|
|
|
x = _with_0:something()
|
|
|
|
print(x)
|
|
|
|
x()
|
2011-12-03 18:44:41 +00:00
|
|
|
end
|
|
|
|
local CoolSuper
|
2012-10-31 06:34:42 +00:00
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2011-12-03 18:44:41 +00:00
|
|
|
local _base_0 = {
|
|
|
|
hi = function(self)
|
2015-12-06 19:24:42 +00:00
|
|
|
_class_0.__parent.__base.hi(self, 1, 2, 3, 4)(1, 2, 3, 4)
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0.__parent.something(1, 2, 3, 4)
|
|
|
|
local _ = _class_0.__parent.something(1, 2, 3, 4).world
|
|
|
|
_class_0.__parent.yeah(self, "world").okay(hi, hi, hi)
|
2011-12-03 18:44:41 +00:00
|
|
|
_ = something.super
|
2015-11-20 06:47:06 +00:00
|
|
|
_ = _class_0.__parent.super.super.super
|
2015-09-30 07:57:08 +00:00
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _base_1 = _class_0.__parent
|
2015-09-30 07:57:08 +00:00
|
|
|
local _fn_0 = _base_1.hello
|
|
|
|
_ = function(...)
|
|
|
|
return _fn_0(self, ...)
|
|
|
|
end
|
|
|
|
end
|
2011-12-03 18:44:41 +00:00
|
|
|
return nil
|
|
|
|
end
|
|
|
|
}
|
|
|
|
_base_0.__index = _base_0
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2013-06-26 03:05:20 +00:00
|
|
|
__init = function() end,
|
2011-12-04 03:17:06 +00:00
|
|
|
__base = _base_0,
|
2013-06-26 03:05:20 +00:00
|
|
|
__name = "CoolSuper"
|
2011-12-03 18:44:41 +00:00
|
|
|
}, {
|
2013-06-26 03:05:20 +00:00
|
|
|
__index = _base_0,
|
2011-12-03 18:44:41 +00:00
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
|
|
|
end
|
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
2012-10-31 06:34:42 +00:00
|
|
|
CoolSuper = _class_0
|
|
|
|
end
|
2012-01-09 06:24:58 +00:00
|
|
|
x = self.hello
|
|
|
|
x = self.__class.hello
|
|
|
|
self:hello("world")
|
|
|
|
self.__class:hello("world")
|
|
|
|
self.__class:one(self.__class:two(4, 5)(self.three, self.four))
|
|
|
|
local xx
|
|
|
|
xx = function(hello, world, cool)
|
|
|
|
self.hello, self.__class.world = hello, world
|
2012-01-09 07:10:25 +00:00
|
|
|
end
|
|
|
|
local ClassMan
|
2012-10-31 06:34:42 +00:00
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2012-01-09 07:10:25 +00:00
|
|
|
local _base_0 = {
|
|
|
|
blue = function(self) end,
|
|
|
|
green = function(self) end
|
|
|
|
}
|
|
|
|
_base_0.__index = _base_0
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2013-06-26 03:05:20 +00:00
|
|
|
__init = function() end,
|
2012-01-09 07:10:25 +00:00
|
|
|
__base = _base_0,
|
2013-06-26 03:05:20 +00:00
|
|
|
__name = "ClassMan"
|
2012-01-09 07:10:25 +00:00
|
|
|
}, {
|
2013-06-26 03:05:20 +00:00
|
|
|
__index = _base_0,
|
2012-01-09 07:10:25 +00:00
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
|
|
|
end
|
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
|
|
|
local self = _class_0
|
|
|
|
self.yeah = 343
|
|
|
|
self.hello = 3434
|
|
|
|
self.world = 23423
|
|
|
|
self.red = function(self) end
|
2012-10-31 06:34:42 +00:00
|
|
|
ClassMan = _class_0
|
|
|
|
end
|
2012-01-12 04:39:09 +00:00
|
|
|
x = self
|
|
|
|
local y = self.__class
|
|
|
|
self(something)
|
|
|
|
self.__class(something)
|
|
|
|
local self = self + self / self
|
|
|
|
self = 343
|
|
|
|
self.hello(2, 3, 4)
|
2012-01-22 19:47:47 +00:00
|
|
|
local _ = hello[self].world
|
2012-10-01 02:16:10 +00:00
|
|
|
local Whacko
|
2012-10-31 06:34:42 +00:00
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2012-10-01 02:16:10 +00:00
|
|
|
local hello
|
|
|
|
local _base_0 = { }
|
|
|
|
_base_0.__index = _base_0
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2013-06-26 03:05:20 +00:00
|
|
|
__init = function() end,
|
2012-10-01 02:16:10 +00:00
|
|
|
__base = _base_0,
|
2013-06-26 03:05:20 +00:00
|
|
|
__name = "Whacko"
|
2012-10-01 02:16:10 +00:00
|
|
|
}, {
|
2013-06-26 03:05:20 +00:00
|
|
|
__index = _base_0,
|
2012-10-01 02:16:10 +00:00
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
2012-01-22 19:47:47 +00:00
|
|
|
end
|
2012-10-01 02:16:10 +00:00
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
|
|
|
local self = _class_0
|
|
|
|
_ = self.hello
|
|
|
|
if something then
|
|
|
|
print("hello world")
|
|
|
|
end
|
|
|
|
hello = "world"
|
|
|
|
self.another = "day"
|
|
|
|
if something then
|
2012-01-22 19:47:47 +00:00
|
|
|
print("yeah")
|
2012-10-01 02:16:10 +00:00
|
|
|
end
|
2012-10-31 06:34:42 +00:00
|
|
|
Whacko = _class_0
|
|
|
|
end
|
2012-10-30 16:44:02 +00:00
|
|
|
print("hello")
|
|
|
|
local yyy
|
|
|
|
yyy = function()
|
|
|
|
local Cool
|
2012-10-31 06:34:42 +00:00
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2012-10-30 16:44:02 +00:00
|
|
|
local _base_0 = { }
|
|
|
|
_base_0.__index = _base_0
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2013-06-26 03:05:20 +00:00
|
|
|
__init = function() end,
|
2012-10-30 16:44:02 +00:00
|
|
|
__base = _base_0,
|
2013-06-26 03:05:20 +00:00
|
|
|
__name = "Cool"
|
2012-10-30 16:44:02 +00:00
|
|
|
}, {
|
2013-06-26 03:05:20 +00:00
|
|
|
__index = _base_0,
|
2012-10-30 16:44:02 +00:00
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
|
|
|
end
|
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
|
|
|
local self = _class_0
|
|
|
|
_ = nil
|
2012-10-31 06:34:42 +00:00
|
|
|
Cool = _class_0
|
2012-10-31 07:07:59 +00:00
|
|
|
return _class_0
|
2012-10-31 06:34:42 +00:00
|
|
|
end
|
2012-10-31 07:07:59 +00:00
|
|
|
end
|
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2012-10-31 07:07:59 +00:00
|
|
|
local _base_0 = { }
|
|
|
|
_base_0.__index = _base_0
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2013-06-26 03:05:20 +00:00
|
|
|
__init = function() end,
|
2012-10-31 07:07:59 +00:00
|
|
|
__base = _base_0,
|
2013-06-26 03:05:20 +00:00
|
|
|
__name = "D"
|
2012-10-31 07:07:59 +00:00
|
|
|
}, {
|
2013-06-26 03:05:20 +00:00
|
|
|
__index = _base_0,
|
2012-10-31 07:07:59 +00:00
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
|
|
|
end
|
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
|
|
|
local self = _class_0
|
|
|
|
_ = nil
|
|
|
|
a.b.c.D = _class_0
|
|
|
|
end
|
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2012-10-31 07:07:59 +00:00
|
|
|
local _base_0 = { }
|
|
|
|
_base_0.__index = _base_0
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2013-06-26 03:05:20 +00:00
|
|
|
__init = function() end,
|
2012-10-31 07:07:59 +00:00
|
|
|
__base = _base_0,
|
2013-06-26 03:05:20 +00:00
|
|
|
__name = "hello"
|
2012-10-31 07:07:59 +00:00
|
|
|
}, {
|
2013-06-26 03:05:20 +00:00
|
|
|
__index = _base_0,
|
2012-10-31 07:07:59 +00:00
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
|
|
|
end
|
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
|
|
|
local self = _class_0
|
|
|
|
_ = nil
|
|
|
|
a.b["hello"] = _class_0
|
|
|
|
end
|
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2012-10-31 07:07:59 +00:00
|
|
|
local _parent_0 = Hello.World
|
|
|
|
local _base_0 = { }
|
|
|
|
_base_0.__index = _base_0
|
2013-06-26 03:05:20 +00:00
|
|
|
setmetatable(_base_0, _parent_0.__base)
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2012-10-31 07:07:59 +00:00
|
|
|
__init = function(self, ...)
|
2015-11-20 06:47:06 +00:00
|
|
|
return _class_0.__parent.__init(self, ...)
|
2012-10-31 07:07:59 +00:00
|
|
|
end,
|
|
|
|
__base = _base_0,
|
|
|
|
__name = "Something",
|
|
|
|
__parent = _parent_0
|
|
|
|
}, {
|
|
|
|
__index = function(cls, name)
|
|
|
|
local val = rawget(_base_0, name)
|
2013-06-26 03:05:20 +00:00
|
|
|
if val == nil then
|
2015-11-20 02:15:51 +00:00
|
|
|
local parent = rawget(cls, "__parent")
|
|
|
|
if parent then
|
|
|
|
return parent[name]
|
|
|
|
end
|
2012-10-31 07:07:59 +00:00
|
|
|
else
|
|
|
|
return val
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
|
|
|
end
|
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
|
|
|
local self = _class_0
|
|
|
|
_ = nil
|
2013-06-26 03:05:20 +00:00
|
|
|
if _parent_0.__inherited then
|
2012-10-31 07:07:59 +00:00
|
|
|
_parent_0.__inherited(_parent_0, _class_0)
|
|
|
|
end
|
|
|
|
(function()
|
|
|
|
return require("moon")
|
|
|
|
end)().Something = _class_0
|
2012-10-31 20:44:56 +00:00
|
|
|
end
|
2012-11-01 15:56:54 +00:00
|
|
|
local a
|
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2012-11-01 15:56:54 +00:00
|
|
|
local _base_0 = { }
|
|
|
|
_base_0.__index = _base_0
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2013-06-26 03:05:20 +00:00
|
|
|
__init = function() end,
|
2012-11-01 15:56:54 +00:00
|
|
|
__base = _base_0,
|
2013-06-26 03:05:20 +00:00
|
|
|
__name = "a"
|
2012-11-01 15:56:54 +00:00
|
|
|
}, {
|
2013-06-26 03:05:20 +00:00
|
|
|
__index = _base_0,
|
2012-11-01 15:56:54 +00:00
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
|
|
|
end
|
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
|
|
|
a = _class_0
|
|
|
|
end
|
|
|
|
local b
|
|
|
|
local Something
|
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2012-11-01 15:56:54 +00:00
|
|
|
local _base_0 = { }
|
|
|
|
_base_0.__index = _base_0
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2013-06-26 03:05:20 +00:00
|
|
|
__init = function() end,
|
2012-11-01 15:56:54 +00:00
|
|
|
__base = _base_0,
|
2013-06-26 03:05:20 +00:00
|
|
|
__name = "Something"
|
2012-11-01 15:56:54 +00:00
|
|
|
}, {
|
2013-06-26 03:05:20 +00:00
|
|
|
__index = _base_0,
|
2012-11-01 15:56:54 +00:00
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
|
|
|
end
|
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
|
|
|
Something = _class_0
|
|
|
|
b = _class_0
|
|
|
|
end
|
|
|
|
local c
|
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2012-11-01 15:56:54 +00:00
|
|
|
local _parent_0 = Hello
|
|
|
|
local _base_0 = { }
|
|
|
|
_base_0.__index = _base_0
|
2013-06-26 03:05:20 +00:00
|
|
|
setmetatable(_base_0, _parent_0.__base)
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2012-11-01 15:56:54 +00:00
|
|
|
__init = function(self, ...)
|
2015-11-20 06:47:06 +00:00
|
|
|
return _class_0.__parent.__init(self, ...)
|
2012-11-01 15:56:54 +00:00
|
|
|
end,
|
|
|
|
__base = _base_0,
|
|
|
|
__name = "Something",
|
|
|
|
__parent = _parent_0
|
|
|
|
}, {
|
|
|
|
__index = function(cls, name)
|
|
|
|
local val = rawget(_base_0, name)
|
2013-06-26 03:05:20 +00:00
|
|
|
if val == nil then
|
2015-11-20 02:15:51 +00:00
|
|
|
local parent = rawget(cls, "__parent")
|
|
|
|
if parent then
|
|
|
|
return parent[name]
|
|
|
|
end
|
2012-11-01 15:56:54 +00:00
|
|
|
else
|
|
|
|
return val
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
|
|
|
end
|
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
2013-06-26 03:05:20 +00:00
|
|
|
if _parent_0.__inherited then
|
2012-11-01 15:56:54 +00:00
|
|
|
_parent_0.__inherited(_parent_0, _class_0)
|
|
|
|
end
|
|
|
|
Something = _class_0
|
|
|
|
c = _class_0
|
|
|
|
end
|
|
|
|
local d
|
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2012-11-01 15:56:54 +00:00
|
|
|
local _parent_0 = World
|
|
|
|
local _base_0 = { }
|
|
|
|
_base_0.__index = _base_0
|
2013-06-26 03:05:20 +00:00
|
|
|
setmetatable(_base_0, _parent_0.__base)
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2012-11-01 15:56:54 +00:00
|
|
|
__init = function(self, ...)
|
2015-11-20 06:47:06 +00:00
|
|
|
return _class_0.__parent.__init(self, ...)
|
2012-11-01 15:56:54 +00:00
|
|
|
end,
|
|
|
|
__base = _base_0,
|
2012-11-01 16:19:04 +00:00
|
|
|
__name = "d",
|
2012-11-01 15:56:54 +00:00
|
|
|
__parent = _parent_0
|
|
|
|
}, {
|
|
|
|
__index = function(cls, name)
|
|
|
|
local val = rawget(_base_0, name)
|
2013-06-26 03:05:20 +00:00
|
|
|
if val == nil then
|
2015-11-20 02:15:51 +00:00
|
|
|
local parent = rawget(cls, "__parent")
|
|
|
|
if parent then
|
|
|
|
return parent[name]
|
|
|
|
end
|
2012-11-01 15:56:54 +00:00
|
|
|
else
|
|
|
|
return val
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
|
|
|
end
|
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
2013-06-26 03:05:20 +00:00
|
|
|
if _parent_0.__inherited then
|
2012-11-01 15:56:54 +00:00
|
|
|
_parent_0.__inherited(_parent_0, _class_0)
|
|
|
|
end
|
|
|
|
d = _class_0
|
|
|
|
end
|
|
|
|
print(((function()
|
|
|
|
local WhatsUp
|
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2012-11-01 15:56:54 +00:00
|
|
|
local _base_0 = { }
|
|
|
|
_base_0.__index = _base_0
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2013-06-26 03:05:20 +00:00
|
|
|
__init = function() end,
|
2012-11-01 15:56:54 +00:00
|
|
|
__base = _base_0,
|
2013-06-26 03:05:20 +00:00
|
|
|
__name = "WhatsUp"
|
2012-11-01 15:56:54 +00:00
|
|
|
}, {
|
2013-06-26 03:05:20 +00:00
|
|
|
__index = _base_0,
|
2012-11-01 15:56:54 +00:00
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
|
|
|
end
|
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
|
|
|
WhatsUp = _class_0
|
|
|
|
return _class_0
|
|
|
|
end
|
|
|
|
end)()).__name)
|
2012-10-31 20:44:56 +00:00
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2012-10-31 20:44:56 +00:00
|
|
|
local _base_0 = { }
|
|
|
|
_base_0.__index = _base_0
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2013-06-26 03:05:20 +00:00
|
|
|
__init = function() end,
|
2012-10-31 20:44:56 +00:00
|
|
|
__base = _base_0,
|
2013-06-26 03:05:20 +00:00
|
|
|
__name = "Something"
|
2012-10-31 20:44:56 +00:00
|
|
|
}, {
|
2013-06-26 03:05:20 +00:00
|
|
|
__index = _base_0,
|
2012-10-31 20:44:56 +00:00
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
|
|
|
end
|
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
|
|
|
local self = _class_0
|
|
|
|
_ = nil
|
|
|
|
Something = _class_0
|
2013-01-13 22:10:21 +00:00
|
|
|
end
|
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2013-01-13 22:10:21 +00:00
|
|
|
local val, insert
|
|
|
|
local _base_0 = { }
|
|
|
|
_base_0.__index = _base_0
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2013-01-13 22:10:21 +00:00
|
|
|
__init = function(self)
|
|
|
|
return print(insert, val)
|
|
|
|
end,
|
|
|
|
__base = _base_0,
|
2013-06-26 03:05:20 +00:00
|
|
|
__name = "Something"
|
2013-01-13 22:10:21 +00:00
|
|
|
}, {
|
2013-06-26 03:05:20 +00:00
|
|
|
__index = _base_0,
|
2013-01-13 22:10:21 +00:00
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
|
|
|
end
|
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
|
|
|
local self = _class_0
|
|
|
|
val = 23
|
2014-09-03 03:31:08 +00:00
|
|
|
insert = table.insert
|
2013-01-13 22:10:21 +00:00
|
|
|
Something = _class_0
|
|
|
|
end
|
2013-01-24 01:50:36 +00:00
|
|
|
do
|
2015-11-20 06:47:06 +00:00
|
|
|
local _class_0
|
2013-01-24 01:50:36 +00:00
|
|
|
local _base_0 = { }
|
|
|
|
_base_0.__index = _base_0
|
2015-11-20 06:47:06 +00:00
|
|
|
_class_0 = setmetatable({
|
2013-01-24 01:50:36 +00:00
|
|
|
__init = hi,
|
|
|
|
__base = _base_0,
|
2013-06-26 03:05:20 +00:00
|
|
|
__name = "X"
|
2013-01-24 01:50:36 +00:00
|
|
|
}, {
|
2013-06-26 03:05:20 +00:00
|
|
|
__index = _base_0,
|
2013-01-24 01:50:36 +00:00
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
|
|
|
end
|
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
|
|
|
X = _class_0
|
|
|
|
end
|
2015-12-06 10:07:41 +00:00
|
|
|
do
|
|
|
|
local _class_0
|
|
|
|
local _parent_0 = Thing
|
|
|
|
local _base_0 = {
|
|
|
|
dang = function(self)
|
|
|
|
return {
|
|
|
|
hello = function()
|
2015-12-06 19:24:42 +00:00
|
|
|
return _class_0.__parent.__base.dang(self)
|
2015-12-06 10:07:41 +00:00
|
|
|
end,
|
|
|
|
world = function()
|
|
|
|
return _class_0.__parent.one
|
|
|
|
end
|
|
|
|
}
|
|
|
|
end
|
|
|
|
}
|
|
|
|
_base_0.__index = _base_0
|
|
|
|
setmetatable(_base_0, _parent_0.__base)
|
|
|
|
_class_0 = setmetatable({
|
|
|
|
__init = function(self, ...)
|
|
|
|
return _class_0.__parent.__init(self, ...)
|
|
|
|
end,
|
|
|
|
__base = _base_0,
|
|
|
|
__name = "Cool",
|
|
|
|
__parent = _parent_0
|
|
|
|
}, {
|
|
|
|
__index = function(cls, name)
|
|
|
|
local val = rawget(_base_0, name)
|
|
|
|
if val == nil then
|
|
|
|
local parent = rawget(cls, "__parent")
|
|
|
|
if parent then
|
|
|
|
return parent[name]
|
|
|
|
end
|
|
|
|
else
|
|
|
|
return val
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
|
|
|
end
|
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
|
|
|
if _parent_0.__inherited then
|
|
|
|
_parent_0.__inherited(_parent_0, _class_0)
|
|
|
|
end
|
|
|
|
Cool = _class_0
|
|
|
|
end
|
2015-12-06 19:06:35 +00:00
|
|
|
do
|
|
|
|
local _class_0
|
|
|
|
local _parent_0 = Thing
|
|
|
|
local _base_0 = {
|
|
|
|
dang = do_something(function(self)
|
2015-12-06 19:24:42 +00:00
|
|
|
return _class_0.__parent.__base.dang(self)
|
2015-12-06 19:06:35 +00:00
|
|
|
end)
|
|
|
|
}
|
|
|
|
_base_0.__index = _base_0
|
|
|
|
setmetatable(_base_0, _parent_0.__base)
|
|
|
|
_class_0 = setmetatable({
|
|
|
|
__init = function(self, ...)
|
|
|
|
return _class_0.__parent.__init(self, ...)
|
|
|
|
end,
|
|
|
|
__base = _base_0,
|
2015-12-06 19:24:42 +00:00
|
|
|
__name = "Whack",
|
2015-12-06 19:06:35 +00:00
|
|
|
__parent = _parent_0
|
|
|
|
}, {
|
|
|
|
__index = function(cls, name)
|
|
|
|
local val = rawget(_base_0, name)
|
|
|
|
if val == nil then
|
|
|
|
local parent = rawget(cls, "__parent")
|
|
|
|
if parent then
|
|
|
|
return parent[name]
|
|
|
|
end
|
|
|
|
else
|
|
|
|
return val
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
|
|
|
end
|
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
|
|
|
if _parent_0.__inherited then
|
|
|
|
_parent_0.__inherited(_parent_0, _class_0)
|
|
|
|
end
|
2015-12-06 19:24:42 +00:00
|
|
|
Whack = _class_0
|
|
|
|
end
|
|
|
|
do
|
|
|
|
local _class_0
|
|
|
|
local _parent_0 = Thing
|
|
|
|
local _base_0 = { }
|
|
|
|
_base_0.__index = _base_0
|
|
|
|
setmetatable(_base_0, _parent_0.__base)
|
|
|
|
_class_0 = setmetatable({
|
|
|
|
__init = function(self, ...)
|
|
|
|
return _class_0.__parent.__init(self, ...)
|
|
|
|
end,
|
|
|
|
__base = _base_0,
|
|
|
|
__name = "Wowha",
|
|
|
|
__parent = _parent_0
|
|
|
|
}, {
|
|
|
|
__index = function(cls, name)
|
|
|
|
local val = rawget(_base_0, name)
|
|
|
|
if val == nil then
|
|
|
|
local parent = rawget(cls, "__parent")
|
|
|
|
if parent then
|
|
|
|
return parent[name]
|
|
|
|
end
|
|
|
|
else
|
|
|
|
return val
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
__call = function(cls, ...)
|
|
|
|
local _self_0 = setmetatable({}, _base_0)
|
|
|
|
cls.__init(_self_0, ...)
|
|
|
|
return _self_0
|
|
|
|
end
|
|
|
|
})
|
|
|
|
_base_0.__class = _class_0
|
|
|
|
local self = _class_0
|
|
|
|
self.butt = function()
|
|
|
|
_class_0.__parent.butt(self)
|
|
|
|
_ = _class_0.__parent.hello
|
|
|
|
_class_0.__parent.hello(self)
|
|
|
|
local _base_1 = _class_0.__parent
|
|
|
|
local _fn_0 = _base_1.hello
|
|
|
|
return function(...)
|
|
|
|
return _fn_0(self, ...)
|
|
|
|
end
|
|
|
|
end
|
2015-12-06 19:31:40 +00:00
|
|
|
self.zone = cool({
|
2015-12-06 19:24:42 +00:00
|
|
|
function()
|
2015-12-06 19:31:40 +00:00
|
|
|
_class_0.__parent.zone(self)
|
2015-12-06 19:24:42 +00:00
|
|
|
_ = _class_0.__parent.hello
|
|
|
|
_class_0.__parent.hello(self)
|
|
|
|
local _base_1 = _class_0.__parent
|
|
|
|
local _fn_0 = _base_1.hello
|
|
|
|
return function(...)
|
|
|
|
return _fn_0(self, ...)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
})
|
|
|
|
if _parent_0.__inherited then
|
|
|
|
_parent_0.__inherited(_parent_0, _class_0)
|
|
|
|
end
|
|
|
|
Wowha = _class_0
|
2015-12-06 19:06:35 +00:00
|
|
|
end
|
2013-01-13 22:10:21 +00:00
|
|
|
return nil
|