global vars implementation, todo gc problems

This commit is contained in:
ProgramSnail 2025-05-11 11:02:07 +03:00
parent 474b0a8ed2
commit aff30ad7c1
12 changed files with 76 additions and 52 deletions

View file

@ -1,2 +1,3 @@
I,Std;
V,x;
F,f;

View file

@ -1 +1,3 @@
public x = 1;
public fun f(a, b) { a + b }

View file

@ -1,3 +1,4 @@
I,Std;
V,x;
F,f;
F,g;

View file

View file

@ -0,0 +1,3 @@
import Dep;
f(x, 1)