Re: CONSTANTS patch - LKBIT
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: CONSTANTS patch - LKBIT
- From: Nilson <nilson.brazil@...>
- Date: 2010年9月28日 00:20:05 -0300
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