Skip to content
MetatablesOverview

getnamecallmethod

Represents inspection of the current dispatched method name.

Details#

Reads the current namecall dispatch method name when such a context exists. Outside namecall handling it may be absent; this is not the last method called anywhere in the application.

Examples#

Example

Luau
local ok, method = pcall(getnamecallmethod)
print(ok, method) -- depends on the current namecall context