Improved type system

This commit is contained in:
Eduard Urbach 2025-02-17 14:31:47 +01:00
parent 78f2670553
commit 6eab48c586
Signed by: eduard
GPG key ID: 49226B848C78F6C8
62 changed files with 189 additions and 172 deletions

View file

@ -2,8 +2,8 @@ import mem
import sys
struct Point {
x Int
y Int
x int
y int
}
main() {
@ -12,7 +12,7 @@ main() {
delete(p)
}
construct(x Int, y Int) -> *Point {
construct(x int, y int) -> *Point {
p := new(Point)
p.x = x
p.y = y