Field pushes onto the stack the value table[name], where table is the table on the stack at the given index. This call may trigger a metamethod for the __index event. http://www.lua.org/manual/5.2/manual.html#lua_getfield
(index int, name string)
| 994 | // |
| 995 | // http://www.lua.org/manual/5.2/manual.html#lua_getfield |
| 996 | func (l *State) Field(index int, name string) { |
| 997 | t := l.indexToValue(index) |
| 998 | l.apiPush(name) |
| 999 | l.stack[l.top-1] = l.tableAt(t, l.stack[l.top-1]) |
| 1000 | } |
| 1001 | |
| 1002 | // RawGet is similar to GetTable, but does a raw access (without metamethods). |
| 1003 | // |