Currently, the readOnly function provided by the helpers module only defines the __index and __pairs metamethods for read-only proxy tables, meaning that iterating via ipairs does not work and neither does checking the length of the read-only table. This pull request fixes that by defining the __ipairs and __len metamethods.
Currently, the
readOnly
function provided by thehelpers
module only defines the__index
and__pairs
metamethods for read-only proxy tables, meaning that iterating viaipairs
does not work and neither does checking the length of the read-only table. This pull request fixes that by defining the__ipairs
and__len
metamethods.