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:
parent
e222f0fb28
commit
91e1311560
8 changed files with 75 additions and 26 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue