lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, Sep 28, 2010 at 12:01 AM, Andre Leiradella <andre@leiradella.com> wrote:

> Sorry if I'm missing something, but how can you do that without patching the
> VM?

I'm really planning a patch as I sent in the title of message:
CONSTANTS patch - LKBIT

> AFAIK, the only way to make a table read-only in vanilla Lua is using
> metamethods.

Yes, but the goal is not to make a table read-only. The goal is to
turn selected fields of any table in constant fields at a very low
cost (very fast execution without additional memory).

-- 
Nilson