2011-10-01 18:46:47 +00:00
|
|
|
local x = {
|
|
|
|
val = 100,
|
|
|
|
hello = function(self)
|
|
|
|
return print(self.val)
|
|
|
|
end
|
|
|
|
}
|
2014-02-05 17:29:39 +00:00
|
|
|
local fn
|
|
|
|
do
|
2011-10-01 18:46:47 +00:00
|
|
|
local _base_0 = x
|
|
|
|
local _fn_0 = _base_0.val
|
2014-02-05 17:29:39 +00:00
|
|
|
fn = function(...)
|
2011-10-01 18:46:47 +00:00
|
|
|
return _fn_0(_base_0, ...)
|
|
|
|
end
|
2014-02-05 17:29:39 +00:00
|
|
|
end
|
2011-10-01 18:46:47 +00:00
|
|
|
print(fn())
|
2011-10-09 22:58:39 +00:00
|
|
|
print(x:val())
|
2014-02-05 17:29:39 +00:00
|
|
|
do
|
2011-10-09 22:58:39 +00:00
|
|
|
local _base_0 = hello(...)
|
|
|
|
local _fn_0 = _base_0.world
|
2014-02-05 17:29:39 +00:00
|
|
|
x = function(...)
|
2011-10-09 22:58:39 +00:00
|
|
|
return _fn_0(_base_0, ...)
|
|
|
|
end
|
2014-02-05 17:29:39 +00:00
|
|
|
end
|