aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-22 23:14:23 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-22 23:14:23 -0500
commit197da905f52051e9341781b2d64e5e47a213242f (patch)
tree1e21570ce403e9efcbdbe56ae84b9465203a1404
parent9e2645ade797be29ce949070c9046e6997416c34 (diff)
Add TODO
-rw-r--r--compile.c2
1 files changed, 2 insertions, 0 deletions
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) {