@ enum type

This commit is contained in:
agra
2026-02-14 14:52:39 +02:00
parent fe7efeadb0
commit d61c6488f3
12 changed files with 164 additions and 41 deletions

View File

@@ -11,12 +11,12 @@ Color :: struct {
main :: () {
p := Point.{10, 20};
c := Color.{255, 128, 0};
pc := &p;
pc := @p;
print("p: {}\n", p);
print("c: {}\n", c);
print("n: {}\n", 42);
print("s: {}\n", "hello");
print("b: {}\n", true);
print("&p: {}\n", pc);
print("&p: {}\n", &p);
print("&p: {}\n", @p);
}