settagmethod

settagmethod(TAG: stringa, EVENT, NEWMETHOD: userdata | stringa | numero)

Sets a new tag method to the given pair (tag, event) and returns the old method. If NEWMETHOD is nil , then the default behavior is restored. Cannot be used for the “gc” event. (Use C API call for “gc”.)