lua-users home
lua-l archive

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


When I run this:

-------------------------

function myHook(table, index, value)
end

myTag = newtag()
settagmethod( tag(myTag), "settable", myHook)

print(tostring(gettagmethod(myTag, "settable")))

-------------------------

It prints "nil" when what I expected was a function.
Can anyone see what I'm doing wrong?

Steve