_hx_funcToField = function(f) if type(f) == 'function' then return function(self,...) return f(...) end else return f end end