lua-users home
lua-l archive

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


> 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))