Simplified compilation of function calls

This commit is contained in:
2025-03-02 21:36:23 +01:00
parent c3054369e3
commit ea233d789d
14 changed files with 114 additions and 97 deletions

View File

@ -0,0 +1,11 @@
import core
struct Struct {
func *any
}
main() {
s := new(Struct)
s.func = core.exit
s.func()
}

View File

@ -0,0 +1,21 @@
import sys
main() {
x := 0
loop {
for 0..10 {
x += 1
}
assert x == 10
loop {
x -= 1
if x == 0 {
sys.exit(0)
}
}
}
}