[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: __index returns truncated to one, why?
- From: duz <duz@...>
- Date: Sat, 12 Apr 2014 15:24:13 +0200
On 12.04.2014 12:30, Dirk Laurie wrote:
int lua_gettable (lua_State *L, int index);
[-1,+1,e]
Pushes onto the stack the value t[k], where t is the value at the given
...
Returns the type of the pushed value.
"Since" 5.3, very good change!
Your arguments against my little proposal are valid when
looking at tables. I don't think much of them applies to
the userdata case but likely, nobody would be thrilled if
metamethods worked subtlety different on different objects.
- References:
- __index returns truncated to one, why?, duz
- Re: __index returns truncated to one, why?, Peng Zhicheng
- Re: __index returns truncated to one, why?, Dirk Laurie
- Re: __index returns truncated to one, why?, duz
- Re: __index returns truncated to one, why?, Dirk Laurie
- Re: __index returns truncated to one, why?, duz
- Re: __index returns truncated to one, why?, Dirk Laurie