Skip to content

suggestion: add the ability to get the namecall method with something like iDONTCAREGIVEMETHEMETHODNOW() (satire - do a better naming choice lol) #366

@vaxtalastus-web

Description

@vaxtalastus-web

title is self explanatory but might aswell

setmetatable({},{__namecall = function(self, ...)
-- I CANT DO ANYTHING BECAUSE  ({...})[2] IS THE FIRST ARG TO THE FUNC, NOT ACTUALLY THE METHOD, SO MAKE A FUNCTION something like getnamecallmethod() that will return "method str"
end})

example if it did work:

setmetatable({},{__namecall = function(self, ...)
return self[getnamecallmethod()](...)
end})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions