Rawget

From Pico-8 Wiki
Jump to navigation Jump to search
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