lua-users home
lua-l archive

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


So, the discussion is about "early error detection in Lua programs" vs. "handy behavior of emptiness"?

On Mon, Jul 18, 2016 at 5:53 PM, Dirk Laurie <dirk.laurie@gmail.com> wrote:

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

Let's make one more step in that direction:
local nop = load''; debug.setmetatable(nil, {__index = nop, __call = nop})

P.S. BTW, thanks for codegolf trick :-)