FANDOM


rawget( tbl, member )
Read a table member, bypassing metamethods
tbl
The table whose member to read.

member
The member to read.

When creating things like class objects, one often overrides metamethods like __index and __newindex with custom code, but might then need to read directly from the table without going through those overrides. This can be done with rawget().

See also Edit

Community content is available under CC-BY-SA unless otherwise noted.