lua-users home
lua-l archive

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


as Rob Kendrick indicated, replacing nil and raising an exception is the only possibility. (and it's a good thing to do, since this avoid the program to continue with an un-initialized variable).



On Fri, Jan 9, 2015 at 6:21 PM, Steven Degutis <> wrote:
What would happen if you accessed a key in a table that it doesn't
contain? Right now it returns nil. What would it do instead if we
removed nil?