Re: Function as metatable (metafunctions?)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Function as metatable (metafunctions?)
 
- From: Dirk Laurie <dirk.laurie@...>
 
- Date: 2014年3月31日 22:49:32 +0200
 
2014年03月31日 22:30 GMT+02:00 Thiago L. <fakedme@gmail.com>:
>
> On 31/03/2014 17:26, Dirk Laurie wrote:
>> debug.setmetatable("", setmetatable({},{
>> __index = function(key)
> Pretty sure that doesn't work :P
OK, it does not.
 "the access to a metamethod does not invoke other metamethods"
In that case, there is a design reason why this is so, and allowing
a metatable to be replaced by a function would defeat that design.