Table.freeze

From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Available since: Gideros 2022.3
Class: table

Description

This function makes the given table read-only, effectively "freezing" it in its current state. Attempting to modify a frozen table throws an error.

(table) = table.freeze(t)
This freezing effect is shallow, which means that you can write to a table within a frozen table. To deep freeze a table, call this function recursively on all of the descending tables

Parameters

t: (table) table to freeze

Return values

Returns (table) the frozen table