MetatablesOverview
setnamecallmethod
Represents modification of method-dispatch metadata.
Aliases
set_namecall_methodDetails#
Changes the method name used by the current namecall dispatch context. It does not rename a table field. The example only writes back a nonempty method name that is already present.
Examples#
Example
local ok, method = pcall(getnamecallmethod)
if ok and type(method) == "string" and method ~= "" then
setnamecallmethod(method)
end