lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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.