[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Bug in pcall? or not?
- From: Nick Gammon <nick@...>
- Date: Thu, 12 Oct 2006 16:33:22 +1000
Is this a bug?
--------------
mt = {}
mt.__index = mt
mt.test = function (a, b, c)
print "test"
end -- function mt.test
t = {}
setmetatable (t, mt)
ok, result = pcall (t:test) --> error: function arguments expected
near `)'
--------------
It works if I do:
--------------
ok, result = pcall (t.test) --> test
--------------
- Nick