From 197da905f52051e9341781b2d64e5e47a213242f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 22 Feb 2024 23:14:23 -0500 Subject: Add TODO --- compile.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compile.c') diff --git a/compile.c b/compile.c index 8d0cdec7..cef2528d 100644 --- a/compile.c +++ b/compile.c @@ -586,6 +586,8 @@ CORD compile(env_t *env, ast_t *ast) code_err(call_arg->ast, "This is too many arguments to the function: %T", fn_t); } + // TODO: ensure args get executed in order (e.g. `foo(y=get_next(1), x=get_next(2))` + // should not execute out of order) for (arg_t *fn_arg = Match(fn_t, FunctionType)->args; fn_arg; fn_arg = fn_arg->next) { ast_t *arg = Table_str_get(&arg_bindings, fn_arg->name); if (arg) { -- cgit v1.2.3