HolyLib Wiki

setreadonly

  debug.setreadonly( table tbl, boolean readOnly = false )

Description

Forces a table to become read only, meaning it cannot be modified in any way.
This readonly logic was added into our LuaJIT build and does not exist in the normal LuaJIT.

Recently Added

This was recently added in version (0.8 - DEV).

Arguments

1table tbl
The table to apply the readonly flag onto
2boolean readOnly = false
If to set or remove the readonly flag.