pioneerspacesim/pioneer — pull request #1460 by johnbartholomew (2012-08-30 17:54:08+00:00)
Title: Lua read-only tables

This replaces `pi_lua_table_ro`, which has never actually worked, with a new `pi_lua_readonly_table_proxy` function which pushes a proxy object that provides read-only access to some underlying table.

Most uses of `pi_lua_table_ro` have been scrapped since most of those tables are returned from functions and created from scratch each time. The constants tables and the dictionary returned by `Lang.GetDictionary`, which are long-lived, use the new read-only proxy system.