lua-users home
lua-l archive

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


Richard Hundt wrote:
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


Seems you guys are way ahead of me. Sorry for the racket.
-R