lua-users home
lua-l archive

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


Here is a hack that I like a lot:

```lua

debug.setmetatable(nil, {
    __index = function(t, i)
        return nil
    end
})

local this = {}

if this.field.does.NOT.exist == nil then
    print('no error!')
end

--> no error!
```


--Andrew