1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-28 09:09:31 +00:00

Custom format for Typed and dispatch refactor

This commit is contained in:
Étienne Fildadut 2023-12-28 14:28:14 +01:00
parent e222f0fb28
commit 91e1311560
8 changed files with 75 additions and 26 deletions

View file

@ -44,9 +44,9 @@ Closure = Runtime(Overloadable) {
format_parameters = function(self, state)
return self.func.parameters:format(state)
end,
call_compatible = function(self, state, args)
call_dispatched = function(self, state, args)
state.scope:push(self.exported_scope)
local exp = self.func:call_compatible(state, args)
local exp = self.func:call_dispatched(state, args)
state.scope:pop()
return exp
end,