Luau sets up L->namecall when namecalling on anything but tables. While this behaviour is impossible to support dynamically in the VM we can allow users to pass a namecallHandlers table so we can partially support this behaviour.
Example:
settings.namecallHandlers["method"] = function(self, ...)
return self:method(...)
end
Luau sets up
L->namecall
when namecalling on anything but tables. While this behaviour is impossible to support dynamically in the VM we can allow users to pass anamecallHandlers
table so we can partially support this behaviour.Example: