23 lines
375 B
Plaintext
23 lines
375 B
Plaintext
#import "modules/std.sx";
|
|
|
|
Point :: struct {
|
|
x, y: s32;
|
|
}
|
|
|
|
Color :: struct {
|
|
r, g, b: s32;
|
|
}
|
|
|
|
main :: () {
|
|
p := Point.{10, 20};
|
|
c := Color.{255, 128, 0};
|
|
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);
|
|
}
|