lang: core: local: Add a new vardir function

This gives us a function to return a created vardir folder. It is not
locally namespaced, and a future function will have to namespace one to
each scope.
This commit is contained in:
James Shubin
2024-09-09 18:04:18 -04:00
parent 87a2dfc8f9
commit 118f266211
4 changed files with 226 additions and 0 deletions

6
examples/lang/vardir.mcl Normal file
View File

@@ -0,0 +1,6 @@
import "fmt"
import "local"
print "debug" {
msg => local.vardir("foo1/"),
}