Improved type system

This commit is contained in:
2025-02-09 23:52:07 +01:00
parent 7634244c56
commit f19d9063a5
30 changed files with 132 additions and 85 deletions

View File

@ -1,9 +1,9 @@
read(fd Int, address Pointer, length Int) -> Int {
read(fd Int, address *Any, length Int) -> Int {
kernel32.ReadFile(fd, address, length)
return length
}
write(fd Int, address Pointer, length Int) -> Int {
write(fd Int, address *Any, length Int) -> Int {
fd = kernel32.GetStdHandle(-10 - fd)
kernel32.WriteConsoleA(fd, address, length, 0)
return length