lua-users home
lua-l archive

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

>> Indexing a nil value is undefined so you would expect
>> it to cause an error. 

DE>   What if indexing a nil value returned nil instead of throwing an
DE> error?

DE>   nil.something == nil

That, my friend, is a much better solution.

Best regards,