[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua life after integers
- From: Andrew Starks <andrew.starks@...>
- Date: Mon, 8 Dec 2014 21:28:45 -0600
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`