Halcyon/demo.hal

14 lines
139 B
Plaintext
Raw Normal View History

2024-11-04 00:51:24 -06:00
S :: struct {
a: integer,
b: glyph,
c: real,
}
s := foo(S{ a: 1, b: 'a', c: 1.0}, 2);
foo :: (s: S, a: integer) -> S {
return s;
}