What does table.__index = table do?

I don’t think you are understanding what I’m asking, I’m asking about the line someClass.__index = someClass not where it sets the metatable for the new instance. What I’m asking is why your setting a tables metatable as it self and what __index has to do with it.