[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How Lua code can be updated at runtime without breaking global state?
- From: Vadim Peretokin <vperetokin@...>
- Date: Tue, 26 Mar 2013 14:11:54 +1000
You can do value = value or default as a pattern to prevent that problem.
Otherwise, the only real problem are upvalues, as those can't be updated (or easily?).