Implement import a, b, c from foo syntax

This brings stuff into the local scope, but it is a little funky with
local scopes that are above the current level (in the same function or
module).

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2024-10-04 20:11:06 -07:00
parent c176efb13a
commit 17408a8695
5 changed files with 62 additions and 14 deletions

View File

@@ -4,3 +4,9 @@ import test_import_local
println(test_import_local.foo)
println(test_import_local.bar)
println(test_import_local.baz)
import foo, bar, baz from test_import_local
println(foo)
println(bar)
println(baz)