Open Mercerenies opened 1 year ago
(labels ((foo () (bar)) (bar () (foo))) (lambda () (foo) (bar)))
This produces a closure object that incorrectly uses the _locals name twice.
_locals
class _LambdaBlock extends GDLisp.Function: var _locals var _locals func _init(_locals, _locals): self._locals = _locals self._locals = _locals self.__gdlisp_required = 0 self.__gdlisp_optional = 0 self.__gdlisp_rest = 0 func call_func(): _locals._fn_foo_1() return _locals._fn_bar_0() func call_funcv(args): if args == null: return call_func() else: push_error("Too many arguments")
It's the same _locals object, so we only need it once. And this is a syntax error in GDScript right now.
This produces a closure object that incorrectly uses the
_locals
name twice.It's the same
_locals
object, so we only need it once. And this is a syntax error in GDScript right now.