diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-04 13:49:09 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-04 13:49:20 -0700 |
| commit | 126f51f955351a4ce85f3f1e6da6e9219ec7e23a (patch) | |
| tree | a5189914f3dfe94e465518b60dadc4f0422be971 /core/operators.nom | |
| parent | a5bbce315dd9e6861d426bb16a3d792e2a3c0dfc (diff) | |
Removing varargs from free var functions.
Diffstat (limited to 'core/operators.nom')
| -rw-r--r-- | core/operators.nom | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/operators.nom b/core/operators.nom index 6ec6909..88b0374 100644 --- a/core/operators.nom +++ b/core/operators.nom @@ -54,7 +54,7 @@ immediately lua> ".." local lua = Lua(tree.source, \%var_lua, ' = ', \%value_lua, ';'); if \%var.type == 'Var' then - lua:add_free_vars(\%var); + lua:add_free_vars({\%var}); end return lua; @@ -72,7 +72,7 @@ immediately local value_lua = value:as_lua(nomsu); if not value_lua.is_value then error("Invalid value for assignment: "..value:get_src()); end if target.type == "Var" then - lhs:add_free_vars(target); + lhs:add_free_vars({target}); end if i > 1 then lhs:append(", "); @@ -93,7 +93,7 @@ immediately compile [exporting %exported %body] to %body_lua <- (%body as lua statements) - lua> "\%body_lua:remove_free_vars(unpack(\(%exported.value)));" + lua> "\%body_lua:remove_free_vars(\(%exported.value));" return %body_lua compile [with %assignments %body] to @@ -112,7 +112,7 @@ immediately error("Invalid value for assignment: "..tostring(value.source:get_text())); end if target.type == "Var" then - lhs:add_free_vars(target); + lhs:add_free_vars({target}); end if i > 1 then lhs:append(", "); |
