setField abstract method

void setField(
  1. int index,
  2. String name
)

Does the equivalent to tk = v, where t is the value at the given index and v is the value on the top of the stack.

This function pops the value from the stack. As in Lua, this function may trigger a metamethod for the "newindex" event

Implementation

void setField(int index, String name);