lua-users home
lua-l archive

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


 On 27/09/2010 22:34, Nilson wrote:
Hi guys,

New feature on the horizon: CONSTANT behavior in lua

It will work applying a LOCK on values stored in a table - any table.
It is planned to be a low level implementation in C code that requires
more ou less 8 target processor instructions overhead per assignment
(1 C if and 1 AND) when the target value is unlocked. Controlled by 3
functions:  lkset(value), lkreset(value), lkget(value)

You can do that using metatables...

Cheers,

Andre