lua-users home
lua-l archive

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




On Monday, December 8, 2014, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
> Neither is __call then, I take it? It is not honored in xpcall, at least.

__call is a core metamethod.

xpcall honors it (by not doing anything special about it):
        t = setmetatable({},{__call=print})
        print(xpcall(t,nil,10,20,30))

I was referring to `msgh`