[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua persistent tables
- From: "Wim Couwenberg" <w.couwenberg@...>
- Date: Tue, 18 Mar 2003 09:27:23 +0100
Hi,
> 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.
Bye,
Wim