Implemented parameter passing for function pointers

This commit is contained in:
2025-03-03 14:32:11 +01:00
parent 751614e7c0
commit df6f7d5a57
8 changed files with 71 additions and 44 deletions

View File

@ -1,13 +1,12 @@
import core
import sys
main() {
func := f
func()
func(0)
sys.exit(1)
}
f() {
exit := core.exit
exit()
f(code int) {
exit := sys.exit
exit(code)
}