lua-users home
lua-l archive

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


Klaus Ripke wrote:
Could indexing anything but a table, or at least indexing nil,
return nil instead of throwing an error?

This doesn't require any changes to the language:

debug.setmetatable(nil, { __index = { } })

Cheers,
Rich