lua-users home
lua-l archive

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


Hi,

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).

Regards,

Enrique


On Fri, Jan 9, 2015 at 6:21 PM, Steven Degutis <sbdegutis@gmail.com> 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?