lua-users home
lua-l archive

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


> If you miss the first line, and that index already has a value, the new
> value doesn't get saved...   Any ideas?

Make sure that there never is a value!  :-)  This technique is called a
"proxy": you keep an empty table and store the real data somewhere else so
__index and __newindex are always triggered.