Re: Inheriting from a userdata object
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Inheriting from a userdata object
- From: Gé Weijers <ge@...>
- Date: 2012年6月19日 12:59:51 -0700
Would this work in your setup?
local game_wrapper_mt = {
__index = function (t,k)
local f = game[k]
return function(self, ...)
return f(game, ...)
end
end,
}
--
Gé