lua-users home
lua-l archive

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


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