Native namecall handler support
Closed this issue · 0 comments
TheGreatSageEqualToHeaven commented
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